|
From: Paul S. O. <ps...@us...> - 2002-03-04 13:43:39
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv22750/includes
Modified Files:
functions.php
Log Message:
preg_quote badword ... don't use # in your bad word list(!)
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.121
retrieving revision 1.122
diff -C2 -r1.121 -r1.122
*** functions.php 28 Feb 2002 14:17:19 -0000 1.121
--- functions.php 4 Mar 2002 13:43:35 -0000 1.122
***************
*** 718,722 ****
do
{
! $orig_word[] = "#\b(" . str_replace("*", "\w*?", $row['word']) . ")\b#is";
$replacement_word[] = $row['replacement'];
}
--- 718,722 ----
do
{
! $orig_word[] = "#\b(" . str_replace("\*", "\w*?", preg_quote($row['word'])) . ")\b#is";
$replacement_word[] = $row['replacement'];
}
|