[TYPO3] CoolUri: Value of an extension-parameter as part of the URL, but problems with special chars like inverted comma

Jan Bednarik info at bednarik.org
Thu Mar 27 21:43:16 CET 2008


Hey,

> i'm using CoolUri and use the value of a parameter of an extension as 
> part of the url - the problem is, this value is a string and so it could 
> be a string like "O'Reilly" - and now i have the problem with the 
> inverted comma. because of this inverted comma i've got three sql-errors:

I guess this extension should take care of removing unwanted characters 
before putting it into typolink function. Or at least typolink should do 
the job.

> or any other ideas to solve the problem?

Well, I guess you can create a little hack.

<part>
       <parameter>tx_myextension_pi1[sword]</parameter>
       <lookindb>
         <to>SELECT $1</to>
         <t3conv>1</t3conv>
       </lookindb>
     </part>

put this into uriparts.


-- 
Jan Bednarik
www.bednarik.org - web about Typo3 in czech


More information about the TYPO3-english mailing list