From 31b604e25b3b5262274520ea47c1c8a645e8a028 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Sat, 9 Feb 2002 16:55:19 +0000 Subject: [PATCH] Fixed problem with stripping HTML in profile (#512639) git-svn-id: file:///svn/phpbb/trunk@2071 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_users.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/admin/admin_users.php b/phpBB/admin/admin_users.php index 5e7d2ede71..c1819e777f 100644 --- a/phpBB/admin/admin_users.php +++ b/phpBB/admin/admin_users.php @@ -295,7 +295,7 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) | if( $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); } @@ -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. 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'] ) {