Issue Bug Closed

#23474includeCSS path-string pass htmlspecialchars twice

Arno Dudek 08/28/10, 21:15 updated 10/02/18, 12:22

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.