Issue Bug Closed

#19699Non-static method RemoveXSS::RemoveXSS() cannot be called statically

Markus Blaschke 12/15/08, 09:16 updated 10/02/18, 12:30

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.