Issue Bug Closed

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

poulpillusion 02/23/10, 16:27 updated 05/14/10, 01:12

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

The solution provided for bug 9945 no longer works in PHP 5.2.10

Here’s a solution that works for 5.2.10 :

Change file typo3conf/ext/th_mailformplus/pi1/class.tx_thmailformplus_pi1.php line 3817 :
$sanitizedArray[$key] = RemoveXSS::RemoveXSS($value);

with :
$remove_filter = new RemoveXSS($value);
$sanitizedArray[$key] = $remove_filter->RemoveXSS($value);

(sorry for filing a new bug, I couldn’t manage to re-open bug 9945)

(issue imported from #M13633)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.