[TYPO3-dev] & in getTabMenu

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Jan 4 18:21:16 CET 2006


Elmar Hinz schrieb am 04.01.2006 13:59:

> I try to use the function template::getTabMenu from René Fritz to generate some
> Tabs in a module. The parameters in the created URLs of the tab links are devide
> by & instead of plaing &. As result of this the var names of the received
> GET paramteres contain an amp; prefix.
> 
> &id=1&tab=1
> 
> GET:
> amp;id	1
> amp;tab	1
> 
> 
> Does this look like a bug or is it a misconfiguration of mine?

It looks like a bug to me. The problem is similar to the one described
in http://bugs.typo3.org/view.php?id=772.

You might want to report a new bug, as this is BE-related (while #772 is
FE-related).

The problem is template::getTabMenu() generates the url, and passes it
through "htmlspecialchars". Then calls template::getTabMenuRaw(), which
will then render the A-tag, but will pass the url again through
htmlspecialchars. My comment from on #772 from 10.11.05 17:00 you can
see that if we follow my 4-step instructions, we need to: generate the
URL in its raw mode in getTabMenu() and then just pass it through
htmlspecialchars right before generating the A-tag.

So the fix would be to remove the "htmlspecialchars()" call in
getTabMenu(), leaving it just in getTabMenuRaw().

Cheers,
Ernesto




More information about the TYPO3-dev mailing list