Contributions
Censor bad words
This contribution will replace bad words in customers reviews with **** signs.
| 7 Feb 2012 |
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)
| Akekapong | 9 Jan 2005 |
| Mircea Teleleu | 13 Aug 2004 |
Note: Contributions are used at own risk.
