[BUGFIX] Truncate long GIFBUILDER file names 05/51305/6
authorThoams Oliver Moll <tom@fullcircle.de>
Fri, 13 Jan 2017 14:05:50 +0000 (15:05 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 14 Feb 2017 15:38:19 +0000 (16:38 +0100)
commit7a71cdc21cd33f8f5cf879d28288ce06e63e0956
treee79b1618aa8ed00c906b568a2ce520df8ad2b9be
parent0e030c4acb37959af3733a6bba63c3bb1ffe1f49
[BUGFIX] Truncate long GIFBUILDER file names

GIFBUILDER generates file names from serialized data from
the GIFBUILDER setup (typoscript).
This can result in too long file names when the GIFBUILDER
is called with many parameters and on filesystems with
a max filename/path length.

The comment of the function fileName() states that the filename
should be shortened to 100 chars, but this doesn't happen.

This patch introduces a simple substring to enforce this limit.

Change-Id: Iaa17760bbf34fc6c01a9bc5ea8d1f8b6b242fecb
Resolves: #79301
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/51305
Reviewed-by: Marco Huber <mail@marco-huber.de>
Tested-by: Marco Huber <mail@marco-huber.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php