Issue Bug Closed

#68956indexed_search page browser - javascript quoting

Marco Dinnbier 08/11/15, 17:25 updated 10/02/18, 11:34

Description

Since this commit [[https://github.com/TYPO3/TYPO3.CMS/commit/75eb4cf5dc65f25fec153e97be9c653c6accc98f]] the quoting in javascript onclick code is not correct.

Maybe you can change it like this

typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php Line 139

$onclick .= 'document.getElementById(GeneralUtility::quoteJSvalue(self::$prefixId . '_pointer')).value=' . GeneralUtility::quoteJSvalue(rawurlencode($freeIndexUid)) . ';';

typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php Line 141

$onclick .= 'document.getElementById(GeneralUtility::quoteJSvalue(self::$prefixId . '_freeIndexUid')).value=' . GeneralUtility::quoteJSvalue(rawurlencode($freeIndexUid)) . ';';

Reviews 1