|
From: Paul S. O. <ps...@us...> - 2002-03-25 12:39:20
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv11518/includes
Modified Files:
functions.php
Log Message:
Fix bad word cockup ... oh look the censor failed and let cockup through, oh, and again ... geez sourceforge needs better censors for its CVS system
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions.php,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -r1.129 -r1.130
*** functions.php 23 Mar 2002 23:12:31 -0000 1.129
--- functions.php 25 Mar 2002 12:39:17 -0000 1.130
***************
*** 446,451 ****
do
{
! $orig_word[] = '#(\W)' . str_replace('\*', '\w*?', preg_quote($row['word']) ) . '(\W)#is';
! $replacement_word[] = '\1' . $row['replacement'] . '\2';
}
while ( $row = $db->sql_fetchrow($result) );
--- 446,451 ----
do
{
! $orig_word[] = "#\b(" . str_replace("\*", "\w*?", phpbb_preg_quote($row['word'], "#")) . ")\b#i";
! $replacement_word[] = $row['replacement'];
}
while ( $row = $db->sql_fetchrow($result) );
|