/** * Use removeXSS function from t3lib_div / GeneralUtility * that function exists in the TYPO3 Core at least since version 4.5, * which is the minimum system requirement for ke_search currentliy (07 / 2015) * * @param string value * @return string XSS safe value */ public function removeXSS($value) { $returnValue = TYPO3\CMS\Core\Utility\GeneralUtility::removeXSS($value); return $returnValue; }
/** * Use removeXSS function from t3lib_div / GeneralUtility * that function exists in the TYPO3 Core at least since version 4.5, * which is the minimum system requirement for ke_search currentliy (07 / 2015) * * @param string value * @return string XSS safe value */ public function removeXSS($value) { if (TYPO3_VERSION_INTEGER >= 6002000) { $returnValue = TYPO3\CMS\Core\Utility\GeneralUtility::removeXSS($value); } else { $returnValue = t3lib_div::removeXSS($value); } return $returnValue; }