Project

General

Profile

Actions

Bug #30416

closed

meaningfulTempFilePrefix is not multi-byte safe

Added by Steffen Gebert about 13 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Should have
Category:
Image Cropping
Target version:
Start date:
2011-09-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

With meaningfulTempFilePrefix, a prefix for file names of generated image files can be set. The unit is currently (obviously) bytes, not characters.

This causes trouble with $TYPO3_CONF_VARS['SYS']['UTF8filesystem'], when the string is truncated exactly in the middle of a multi-byte char, resulting in the file not being accessible via HTTP.
The file name "abcÄ" with a prefix length of 4 would cut the last byte of the Ä, resulting in "abc?".

Thus, substring generation has to respect the charset set of the file name, which is then UTF-8.

Actions

Also available in: Atom PDF