aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-24 10:58:26 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-03-24 11:01:54 +0100
commita66ec6eccf31b36f29c57fa9c29eafe531933606 (patch)
treeeeb76611142f51c13c63906e6a93a1df83fc5646 /phpBB/includes/acp
parentc5ef29a6f1729ddc6cfec18247c8a4fe13b6d333 (diff)
downloadforums-a66ec6eccf31b36f29c57fa9c29eafe531933606.tar
forums-a66ec6eccf31b36f29c57fa9c29eafe531933606.tar.gz
forums-a66ec6eccf31b36f29c57fa9c29eafe531933606.tar.bz2
forums-a66ec6eccf31b36f29c57fa9c29eafe531933606.tar.xz
forums-a66ec6eccf31b36f29c57fa9c29eafe531933606.zip
[ticket/14530] Only generate text again if sig was parsed for storage
PHPBB3-14530
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_users.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 0ee6452ada..76b6275954 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -2073,7 +2073,10 @@ class acp_users
// Replace "error" strings with their real, localised form
$error = array_map(array($user, 'lang'), $error);
- $decoded_message = generate_text_for_edit($signature, $bbcode_uid, $bbcode_bitfield);
+ if ($request->is_set_post('preview'))
+ {
+ $decoded_message = generate_text_for_edit($signature, $bbcode_uid, $bbcode_bitfield);
+ }
/** @var \phpbb\controller\helper $controller_helper */
$controller_helper = $phpbb_container->get('controller.helper');