Bug #14819
closedhtmlspecialchars called multiple times
0%
Description
In the class.tx_indexedsearch.php there are multiple situations where the output is processed by htmlspecialchars multiple times which results in output like "
My solution was to remove one of the duplicates.
(issue imported from #M1199)
Files
Updated by Johannes Bornhold over 19 years ago
Added some excerpts from the file pi/class.tx_indexedsearch.php. Hope this helps.
Updated by Ingo Schmitt about 19 years ago
Working Version attached, just changed prepareResultRowTemplateData line 1472 to $title = $this->linkPage($row['data_page_id'],($this->makeTitle($row)),$row,$markUpSwParams);
Updated by Ingo Schmitt about 19 years ago
Uploaded wrong file, sorry, last one is the right one
Updated by René Wagner almost 19 years ago
Ugly result: If a page title contains an ampersand (not too rarely), the twice parsing makes the entity visible &. Other specialchars should not used as often.
Updated by Michael Stucki almost 19 years ago
Funny enough I just sent a patch for this to the core list 5 minutes ago! :-)
Updated by René Wagner almost 19 years ago
Whats with this part:
class.tx_indexedsearch.php,v 1.15.2.1
1929: $pathStr = htmlspecialchars($this->getPathFromPageId($pathId,$pathMP));
1930: $tmplArray['path'] = $this->linkPage($pathId,htmlspecialchars($pathStr),array(
Updated by Michael Stucki almost 19 years ago
Thanks, René - I've changed this as well.