Index: t3lib/class.t3lib_div.php =================================================================== @@ -3603,9 +3603,10 @@ * Usage: 52 * * @param array Array of GET parameters to include + * @param boolean Apply htmlspecialchars to the retunr value * @return string */ - public static function linkThisScript(array $getParams = array()) { + public static function linkThisScript(array $getParams = array(), $useHtmlSpecialChars = FALSE) { $parts = t3lib_div::getIndpEnv('SCRIPT_NAME'); $params = t3lib_div::_GET(); @@ -3619,7 +3620,9 @@ $pString = t3lib_div::implodeArrayForUrl('', $params); - return $pString ? $parts . '?' . preg_replace('/^&/', '', $pString) : $parts; + $returnValue = $pString ? $parts . '?' . preg_replace('/^&/', '', $pString) : $parts; + + return $useHtmlSpecialChars ? htmlspecailchars($returnValue) : $returnValue; } /**