PDA

View Full Version : Censor bad words



michael_s
02-07-2012, 01:00 PM
In: catalog/includes/functions/general.php

Replace:
$message = ereg_replace(trim($word),"*****",$message); //replace words

With:
$message = preg_replace('/trim($word)/',"*****",$message); //replace words

This avoids deprecated warnings showing on server with PHP 5.3 or higher.

(Attachment is empty)

More... (http://addons.oscommerce.com/info/2346)