[TYPO3-core] RFC: #6555 typoscript template.relPathPrefix causes decoding of html-entities in affected attributes

Martin Ficzel martin.ficzel at gmx.de
Sat Oct 20 20:00:44 CEST 2007


Ingo Renner schrieb:
> Martin Ficzel wrote:
> 
> Hi Martin,
> 
>> <a href="/index.php?id=foo&amp;L=1">bar</a>
> 
> So why not just writing <a href="/index.php?id=foo&L=1">bar</a> in you
> _template_ file if it gets encoded for your convenience anyway?

first: because i expect that the cams is delivering exactly template i
wrote. it was very strange to figure out what went wrong and why my page
did'nt pass the validator.

second: because i expect the template mechanism to behave always the
same. the mentioned transform is only done if relPathPrefix is set

third: writing "<a href="/index.php?id=foo&L=1">bar</a>" is not a
solution. it will not get encoded it will be writte as it is. only if i
write "<a href="/index.php?id=foo&amp;L=1">bar</a>" the &amp; is
decoded. Following the html standard i have to mask the htmlentities in
the code so the result is simply not valid.

forth: to get valid code i could write "<a
href="/index.php?id=foo&amp;amp;L=1">bar</a>" but thats not more than a
real dirty hack.

regards Martin


More information about the TYPO3-team-core mailing list