Project

General

Profile

Actions

Bug #14648

closed

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

Added by Marc Wöhlken over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-04-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #14547: XHTML compliance of typolink (non-compliant links are generated when additional parameters are used)ClosedMartin Kutschker2005-02-10

Actions
Actions #1

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.

Actions #2

Updated by Oliver Klee about 19 years ago

This looks like a dupe of 0000772.

Actions #3

Updated by Sebastian Kurfuerst about 19 years ago

this is a duplicate

Actions

Also available in: Atom PDF