#14648getTypoLink (tslib_class.tslib_content.php) function produces non standard conform links.
Description
This concerns the ampersand ‘&’ used to concatenate GET Params.
E.g.:
http://www.mysite.con/index.php?id=5¶m=value
should be
http://www.mysite.con/index.php?id=5¶m=value
Entities like ‘&’ have to be resolved.
For a fix see code listing.
Additional Information function getTypoLink($label,$params,$urlParameters=array(),$target=’‘) {
…
while(list($k,$v)=each($urlParameters)) {
$conf[‘additionalParams’].=’&’.$k.’=’.@rawurlencode($v);
}
…
}
Sould be
function getTypoLink($label,$params,$urlParameters=array(),$target=’‘) {
…
while(list($k,$v)=each($urlParameters)) {
$conf[‘additionalParams’].=’&’.$k.’=’.@rawurlencode($v);
}
…
}
(issue imported from #M948)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.