|
From: Paul S. O. <ps...@us...> - 2001-12-03 12:46:35
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv30274/includes
Modified Files:
functions.php
Log Message:
Should fix bug #487886 bad word preg now uses # and quotes # too
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -r1.87 -r1.88
*** functions.php 2001/11/29 11:25:04 1.87
--- functions.php 2001/12/03 12:46:32 1.88
***************
*** 880,886 ****
for($i = 0; $i < count($word_list); $i++)
{
! $word = str_replace("\*", "\w*?", preg_quote($word_list[$i]['word']));
! $orig_word[] = "/\b(" . $word . ")\b/i";
$replacement_word[] = $word_list[$i]['replacement'];
}
--- 880,886 ----
for($i = 0; $i < count($word_list); $i++)
{
! $word = str_replace("\*", "\w*?", preg_quote($word_list[$i]['word'], "#"));
! $orig_word[] = "#\b(" . $word . ")\b#i";
$replacement_word[] = $word_list[$i]['replacement'];
}
|