Zeile 393 | 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 404 | 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);
|
} } }
| } } }
|