[TYPO3-core] RFC #16216 Bug: taskcenter - wrongly created path for icon (in certain conditions)

Krystian Szymukowicz t33k at prolabium.com
Tue Nov 2 11:37:41 CET 2010


Hi,

this is a SVN patch request.

Type: Bugfix, almost nobrainer

BT reference: http://bugs.typo3.org/view.php?id=16216

Branches: 4_4, trunk


PROBLEM:
The path for icon in taskcenter is created wtih:
$icon = $GLOBALS['BACK_PATH'] . '../' . str_replace(PATH_site, '', 
$absIconPath);

There are some edge situations when the PATH_site is equal to "/". In 
that case the backslash from icon path will be removed and such path of 
icon generated:
http://example.com/typo3sysextsys_actionx-sys_action.png

SOLUTION:
Check if PATH_site is "/"


-- 
grtz
Krystian Szymukowicz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16216 _taskcenter.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101102/4113a84c/attachment.txt>


More information about the TYPO3-team-core mailing list