Issue Bug Closed

#28536JSwindow-typolink URLs are encoded twice with htmlspecialchars()

Torben Hansen 07/28/11, 15:21 updated 10/24/17, 20:18

Description

  1. 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:

www.domain.tld/index.php?id=1&parameter1&parameter2

Removing the htmlspecialchars() in line 5905 resolves the problem.

Reviews 4