JSwindow-typolink URLs are encoded twice with htmlspecialchars()
#28189 introduces a bug in JSwindow-typolink URLs, which are being encoded twice with htmlspecialchars().
In "class.tslib_content.php" line 5905 t3lib_div::quoteJSvalue is called, which does htmlspecialchars() on the final URL. Then, in line 5908 again htmlspecialchars() is called for the same URLs, which already has been encoded in line 5905.
This results in non working URLs with double ampersands like this:
Removing the htmlspecialchars() in line 5905 resolves the problem.
Updated by Helmut Hummel over 12 years ago
Steps to reproduce:
1. Use the following Typoscript:
lib.printLink = TEXT
value = Print Page
htmlSpecialChars = 1
typolink.parameter = # 800x600:scrollbars=yes
typolink.additionalParams = &print=1
typolink.addQueryString = 1
page.1 < lib.printLink
2. Click on the link