From efe2b06d8186a71afec48f64af123629b63bfd02 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 6 Oct 2001 17:50:28 +0000 Subject: [PATCH] Fixed preg single quote potential problem, altered jumpbox slightly - Third time lucky ... I hate FTP ... git-svn-id: file:///svn/phpbb/trunk@1138 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 2399882dcb..6be4bef80a 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -830,7 +830,7 @@ function smilies_pass($message) usort($smilies, 'smiley_sort'); for($i = 0; $i < count($smilies); $i++) { - $orig[] = "/(?<=.\\W|\\W.|^\\W)" . preg_quote($smilies[$i]['code']) . "(?=.\\W|\\W.|\\W$)/i"; + $orig[] = "/(?<=.\\W|\\W.|^\\W)" . preg_quote($smilies[$i]['code'], "/") . "(?=.\\W|\\W.|\\W$)/i"; $repl[] = '' . $smilies[$i]['smile_url'] . ''; }