Zeile 275 | Zeile 275 |
---|
{ foreach($custom_mycode as $key => $mycode) {
|
{ foreach($custom_mycode as $key => $mycode) {
|
| $mycode['regex'] = str_replace("\x0", "", $mycode['regex']);
|
$custom_mycode[$key]['regex'] = "#".$mycode['regex']."#si"; } $mycode = array_merge($standard_mycode, $custom_mycode);
| $custom_mycode[$key]['regex'] = "#".$mycode['regex']."#si"; } $mycode = array_merge($standard_mycode, $custom_mycode);
|
Zeile 392 | Zeile 393 |
---|
foreach($this->smilies_cache as $find => $replace) { $find = $this->parse_html($find);
|
foreach($this->smilies_cache as $find => $replace) { $find = $this->parse_html($find);
|
| $find = preg_quote($find, "#");
|
if(version_compare(PHP_VERSION, "5.1.0", ">=")) {
|
if(version_compare(PHP_VERSION, "5.1.0", ">=")) {
|
$message = preg_replace("#(?<=[^&;\"])".preg_quote($find,"#")."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining, $replacements);
| // Fix issues for smileys starting with a ";" if($find{0} == ";") { $find = "(?<!>|<|&)".$find; } $message = preg_replace("#(?<=[^\"])".$find."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining, $replacements);
|
$remaining -= $replacements; if($remaining <= 0) {
| $remaining -= $replacements; if($remaining <= 0) {
|
Zeile 403 | Zeile 412 |
---|
} else {
|
} else {
|
$message = preg_replace("#(?<=[^&;\"])".preg_quote($find,"#")."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining);
| $message = preg_replace("#(?<=[^&;\"])".$find."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining);
|
} } }
| } } }
|