Bug #14648
closedgetTypoLink (tslib_class.tslib_content.php) function produces non standard conform links.
0%
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&param=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)
Updated by Marc Wöhlken over 19 years ago
As far as I can see it's not only the getTypoLink() method it's in typoLink(), too.