[TYPO3-dev] Ugly linkbuilding in class.tx_lib_link.php

Jörg Sprung joerg.sprung at dev.null
Mon Jun 25 14:16:38 CEST 2007


Hi,

i've search for a hour why my eFaq won't work. I found the Problem in 
class.tx_lib_link.php.

Here the Links were build like this:

foreach((array) $parameters as $key => $value){
	if(!is_array($value)) {   // TODO handle arrays
		if($this->designatorString) {
			$conf['additionalParams'] .= '&' . $this->designatorString . '['
				. rawurlencode($key) . ']=' . rawurlencode($value);
		} else {
			$conf['additionalParams'] .= '&' .
				rawurlencode($key) . '=' . rawurlencode($value);
		}
	}
}

Here the & is hard coded which will scramle the linkoutput. I got 
?id=2102&L=0&efaq%5Buid%5D=878&efaq%5BbackId%5D=2098&efaq%5BbackAnchor%5D=efaq_question878&cHash=de79826d77

as you can see the & will be tranformed to & , because I use 
  xhtml_cleaning=all.

Please fix that problem with the possibility to change this value in 
extension-configuration. At this moment it's not possible for me using 
extension depending on linkgeneration fron tx_lib_link.

regards

Jörg




More information about the TYPO3-dev mailing list