|
From: Paul S. O. <ps...@us...> - 2001-11-18 15:36:59
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv1447
Modified Files:
profile.php
Log Message:
Slightly fairer sig length check, removes =.*? from BBCode and HTML tags
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.133
retrieving revision 1.134
diff -C2 -r1.133 -r1.134
*** profile.php 2001/11/18 15:17:05 1.133
--- profile.php 2001/11/18 15:36:56 1.134
***************
*** 632,637 ****
if( $signature != "" )
{
! if( strlen($signature) > $board_config['max_sig_chars'] )
{
$error = TRUE;
if( isset($error_msg) )
--- 632,646 ----
if( $signature != "" )
{
! $sig_length_check = preg_replace("/(\[.*?)(=.*?)\]/is", "\\1]", $signature);
! if( $allowhtml )
{
+ $sig_length_check = preg_replace("/(<.*?)(=.*?)([ \/]?" . ">)/is", "\\1\\3", $signature);
+ }
+
+ $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : "";
+ $signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
+
+ if( strlen($sig_length_check) > $board_config['max_sig_chars'] )
+ {
$error = TRUE;
if( isset($error_msg) )
***************
*** 640,648 ****
}
$error_msg .= $lang['Signature_too_long'];
- }
- else
- {
- $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : "";
- $signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
}
}
--- 649,652 ----
|