Project

General

Profile

Actions

Bug #23474

closed

includeCSS path-string pass htmlspecialchars twice

Added by Arno Dudek about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-08-28
Due date:
% Done:

0%

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

Description

There is an issue by including an external CSS file with parameters. I use it in a ViewHelper class in this way:

$GLOBALS['TSFE']->pSetup[$position][$key] = $path;
$GLOBALS['TSFE']->pSetup[$position][$key . '.'] = array(
'media' => $media,
[…]
);

$path looks like:
http://localhost/?type=123456788&cHash=a7a8da9a0538718db5b98d003bfedd6e […]

The output is:
http://localhost/?type=123456788&cHash=a7a8da9a0538718db5b98d003bfedd6e […]

You'll see the path-string pass htmlspecialchars twice:
1. class.tslib_pagegen.php line 546
2. class.t3lib_pagerenderer.php line 1105

solution replace in class.tslib_pagegen.php line 546
htmlspecialchars($ss),
to
$ss,

lg ad

(issue imported from #M15587)


Files

patch_15587.diff (4.89 KB) patch_15587.diff Administrator Admin, 2010-10-29 22:32
Actions

Also available in: Atom PDF