Issue Bug Rejected

#18022Hardcoded Ampersand in t3lib_div::implodeArrayForUrl

Stefano Kowalke 01/18/08, 22:17 updated 11/22/11, 15:34

Description

One extension (ab_linklist) in my TYPO3 Installation called the tslib_pibase::pi_getPageLink() to build a URL with GET-Parameters.

$this->pi_getPageLink( $GLOBALS[‘TSFE’]->id, ‘_blank’, array( ‘tx_ablinklist_pi1[action]’ => ‘getviewclickedlink’, ‘tx_ablinklist_pi1[uid]’ => $record[‘uid’], ‘no_cache’ => ‘1’ ) );

But the function rendered the Output without escape the Ampersands (&) into & :

index.php?id=14&tx_ablinklist_pi1[action]=getviewclickedlink&tx_ablinklist_pi1[uid]=2&no_cache=1

I fixed this and all looks fine, but it dont work together with the realurl extension, since realurl modify the PID Parameter (id=2) into “start” or something. Then you get a URI like this:

start/?amp%3Btx_ablinklist_pi1%5Baction%5D=getviewclickedlink&amp%3Btx_ablinklist_pi1%5Buid%5D=2&amp%3Bno_cache=1

I think realurl filters the “&” but not “&” when its build the URL. Besides from this realurl cut the “;” from “&”.
(issue imported from #M7208)

Reviews 0

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