|
From: Paul S. O. <ps...@us...> - 2002-03-19 00:08:22
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv24811/includes
Modified Files:
functions.php
Log Message:
phpbb_preg_quote that bad word replace ... just in case ...
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.125
retrieving revision 1.126
diff -C2 -r1.125 -r1.126
*** functions.php 18 Mar 2002 23:53:12 -0000 1.125
--- functions.php 19 Mar 2002 00:08:18 -0000 1.126
***************
*** 446,450 ****
do
{
! $orig_word[] = '#\W(' . str_replace('\*', '\w*?', preg_quote($row['word'])) . ')\W#is';
$replacement_word[] = $row['replacement'];
}
--- 446,450 ----
do
{
! $orig_word[] = '#\W(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word']), "#") . ')\W#is';
$replacement_word[] = $row['replacement'];
}
|