Skip to content

Commit

Permalink
Fixed incorrect preg_quote
Browse files Browse the repository at this point in the history
  • Loading branch information
mark0263 committed Jan 24, 2017
1 parent 92a1e8e commit 71f28db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/plugins/forum/functions.inc
Expand Up @@ -768,7 +768,7 @@ function forum_xchsmilies($message,$reverse=false) {
$counter = 0;
foreach ( $search AS $emoticon) {
if ( isset($replace[$counter])) {
$message = preg_replace("#(?<=\s|^)" . preg_quote($emoticon) . "#", $replace[$counter], $message);
$message = preg_replace("#(?<=\s|^)" . preg_quote($emoticon,"#") . "#", $replace[$counter], $message);
}
$counter++;
}
Expand Down

0 comments on commit 71f28db

Please sign in to comment.