mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 07:01:22 +02:00
Fixed problem with stripping HTML in profile (#512639)
git-svn-id: file:///svn/phpbb/trunk@2071 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -295,7 +295,7 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) |
|
|||||||
if( $signature != "" )
|
if( $signature != "" )
|
||||||
{
|
{
|
||||||
$sig_length_check = preg_replace("/(\[.*?)(=.*?)\]/is", "\\1]", stripslashes($signature));
|
$sig_length_check = preg_replace("/(\[.*?)(=.*?)\]/is", "\\1]", stripslashes($signature));
|
||||||
if( $allowhtml )
|
if( $board_config['allow_html'] )
|
||||||
{
|
{
|
||||||
$sig_length_check = preg_replace("/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is", "\\1\\3\\4", $sig_length_check);
|
$sig_length_check = preg_replace("/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is", "\\1\\3\\4", $sig_length_check);
|
||||||
}
|
}
|
||||||
@@ -303,9 +303,9 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) |
|
|||||||
// Only create a new bbcode_uid when there was no uid yet.
|
// Only create a new bbcode_uid when there was no uid yet.
|
||||||
if($signature_bbcode_uid == '')
|
if($signature_bbcode_uid == '')
|
||||||
{
|
{
|
||||||
$signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : "";
|
$signature_bbcode_uid = ( $board_config['allow_bbcode'] ) ? make_bbcode_uid() : "";
|
||||||
}
|
}
|
||||||
$signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid);
|
$signature = prepare_message($signature, $board_config['allow_html'], $board_config['allow_bbcode'], $board_config['allow_smilies'], $signature_bbcode_uid);
|
||||||
|
|
||||||
if( strlen($sig_length_check) > $board_config['max_sig_chars'] )
|
if( strlen($sig_length_check) > $board_config['max_sig_chars'] )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user