Bug #15693
closedtypoLink is htmlspecialchared, so the links are wrong
0%
Description
With the Beta3 the links for the shop system are generated with wrong parameters like <a href="index.php?id=51&backPID=13&tt_products=2094">
where it should have been
<a href="index.php?id=51&backPID=13&tt_products=2094">
This error comes from class.tslib_content.php
function typoLink($linktxt, $conf).
$finalTagParts['url']=$this->lastTypoLinkUrl;
However $this->lastTypoLinkUrl contains parameters separated with '&'.
$res = '<a href="'.htmlspecialchars($finalTagParts['url']).'"'.($title?' title="'.$title.'"':'').$finalTagParts['targetParams'].($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
Here the wrong htmlspecialchars it applied to the url with parameters.
Debug Infos:
--------------------------
$conf
String (2) parameter 51
String (36) additionalParams &backPID=13&tt_products=2091
[debug] in
String (2) $link_param 51
Array (4)
$finalTagParts
String (1) aTagParams
String (51) url index.php?id=51&backPID=13&tt_products=2091
String (0) targetParams
String (4) TYPE page
$res <a href="index.php?id=51&backPID=13&tt_products=2091" >
(issue imported from #M2657)
Files