aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2001-12-22 12:54:59 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2001-12-22 12:54:59 +0000
commitca8ebea07ece78aa386f26c8ba466dd43fd268ff (patch)
tree2c7cac54e6e7aa270c0349f489610ba9dcdf6052 /phpBB/profile.php
parent04d4c27785d4a2f7d5aecd30e29a731823bb48b8 (diff)
downloadforums-ca8ebea07ece78aa386f26c8ba466dd43fd268ff.tar
forums-ca8ebea07ece78aa386f26c8ba466dd43fd268ff.tar.gz
forums-ca8ebea07ece78aa386f26c8ba466dd43fd268ff.tar.bz2
forums-ca8ebea07ece78aa386f26c8ba466dd43fd268ff.tar.xz
forums-ca8ebea07ece78aa386f26c8ba466dd43fd268ff.zip
Recycle signature_bbcode_uid
git-svn-id: file:///svn/phpbb/trunk@1673 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php8
1 files 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
+?>