From ca8ebea07ece78aa386f26c8ba466dd43fd268ff Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Sat, 22 Dec 2001 12:54:59 +0000 Subject: [PATCH] Recycle signature_bbcode_uid git-svn-id: file:///svn/phpbb/trunk@1673 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index b609743381..780951ad8a 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -667,7 +667,11 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $sig_length_check = preg_replace("/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is", "\\1\\3\\4", $sig_length_check); } - $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : ""; + // Only create a new bbcode_uid when there was no uid yet. + if($signature_bbcode_uid == '') + { + $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'] ) @@ -2050,4 +2054,4 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) } } -?> \ No newline at end of file +?>