#19699Non-static method RemoveXSS::RemoveXSS() cannot be called statically
Description
MailformPlus will produce the fatal error (but it’s not MailformPlus, it’s in the TYPO3 Core):
PHP Fatal error: Non-static method RemoveXSS::RemoveXSS() cannot be called statically, assuming $this from incompatible context in TYPO3_SRC/t3lib/class.t3lib_div.php on line 383
t3lib_div:
public function removeXSS($string) {
require_once(PATH_typo3.‘contrib/RemoveXSS/RemoveXSS.php’);
$string = RemoveXSS::RemoveXSS($string);
return $string;
}
removeXSS.php:
class RemoveXSS {
function RemoveXSS($val) {
[…]
}
}
(issue imported from #M9945)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.