Issue Bug Closed

#14648getTypoLink (tslib_class.tslib_content.php) function produces non standard conform links.

Marc Wöhlken 04/07/05, 02:20 updated 08/12/06, 14:23

Description

This concerns the ampersand ‘&’ used to concatenate GET Params.

E.g.:
http://www.mysite.con/index.php?id=5&param=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)

Reviews 0

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