[BUGFIX] meaningfulTempFilePrefix is not multi-byte safe
authorSteffen Gebert <steffen.gebert@typo3.org>
Sun, 2 Oct 2011 08:23:59 +0000 (10:23 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Wed, 5 Oct 2011 17:43:21 +0000 (19:43 +0200)
commit17c8c401cf68694a176e4ec02f3c5de775c48c8b
tree4ae2ad65222cb10e66d73f40f16216f024e0abbd
parentd74065784318ce8ca3d0f154bde1c2acc2ecc8be
[BUGFIX] meaningfulTempFilePrefix is not multi-byte safe

On a utf-8 file system meaningful prefixes can contain utf-8 characters. To
prevent truncating in the middle of a multi-byte character the API functions
must be used instead of substr().

Change-Id: Icf1a0cd1c095402cd31768ac732ec9bc9dfe7519
Resolves: #30416
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/5572
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/cms/tslib/class.tslib_gifbuilder.php