|
From: Paul S. O. <ps...@us...> - 2002-03-25 13:04:00
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv28665/includes
Modified Files:
functions_post.php
Log Message:
Should fix bug where a solitary < caused the text to repeat
Index: functions_post.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/functions_post.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** functions_post.php 24 Mar 2002 13:21:16 -0000 1.5
--- functions_post.php 25 Mar 2002 13:03:55 -0000 1.6
***************
*** 76,80 ****
$match_tag = trim($allowed_html_tags[$i]);
! if ( preg_match('/^<\/?' . $match_tag . '\W/i', $hold_string) )
{
$tagallowed = true;
--- 76,80 ----
$match_tag = trim($allowed_html_tags[$i]);
! if ( preg_match('/^<\/?' . $match_tag . '\b/i', $hold_string) )
{
$tagallowed = true;
***************
*** 91,94 ****
--- 91,95 ----
$start_html = strlen($message);
+ $end_html = $start_html;
}
}
|