// Neutralize multiple adjacent wildcards and generate pattern $ptrn = array('/\*\++/', '/\++\*/', '/\*+/'); $rplc = array('*', '*', '[^\s\n]*');
| // Neutralize escape character, regex operators, multiple adjacent wildcards and generate pattern $ptrn = array('/\\\\/', '/([\[\^\$\.\|\?\(\)\{\}]{1})/', '/\*\++/', '/\++\*/', '/\*+/'); $rplc = array('\\\\\\\\','\\\\${1}', '*', '*', '[^\s\n]*');
|
$bad_word = preg_replace($ptrn, $rplc, $bad_word); // Count + and generate pattern
| $bad_word = preg_replace($ptrn, $rplc, $bad_word); // Count + and generate pattern
|
$name = preg_replace("#&\#([0-9]+);#si", "&#$1;", $name); // Fix & but allow unicode
| $name = $this->parse_badwords(preg_replace("#&\#([0-9]+);#si", "&#$1;", $name)); // Fix & but allow unicode, filter bad words
|
eval("\$mycode_url = \"".$templates->get("mycode_url", 1, 0)."\";"); return $mycode_url;
| eval("\$mycode_url = \"".$templates->get("mycode_url", 1, 0)."\";"); return $mycode_url;
|