diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-11-05 11:06:15 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-11-05 11:06:15 +0100 |
commit | 44d5bde61604979ea6f89951e78edf352f8a9bb5 (patch) | |
tree | 6704264d5e2fe456c90fe544957ebd1d25a148dc /phpBB/includes | |
parent | b71e725c0b6d9cf045af80b4a954f166951da93e (diff) | |
parent | 9933380d800ecc807e0d05b5c77312a8d7b395d3 (diff) | |
download | forums-44d5bde61604979ea6f89951e78edf352f8a9bb5.tar forums-44d5bde61604979ea6f89951e78edf352f8a9bb5.tar.gz forums-44d5bde61604979ea6f89951e78edf352f8a9bb5.tar.bz2 forums-44d5bde61604979ea6f89951e78edf352f8a9bb5.tar.xz forums-44d5bde61604979ea6f89951e78edf352f8a9bb5.zip |
Merge pull request #5002 from JoshyPHP/ticket/15408
[ticket/15408] Reject duplicate BBCodes in ACP
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_bbcodes.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index f958ae93c7..18d574081a 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -553,10 +553,10 @@ class acp_bbcodes } // Lowercase tags - $bbcode_tag = preg_replace('/.*?\[([a-z0-9_-]+=?).*/i', '$1', $bbcode_match); - $bbcode_search = preg_replace('/.*?\[([a-z0-9_-]+)=?.*/i', '$1', $bbcode_match); + $bbcode_tag = preg_replace('/.*?\[([a-z0-9_-]+).*/i', '$1', $bbcode_match); + $bbcode_search = preg_replace('/.*?\[([a-z0-9_-]+).*/i', '$1', $bbcode_match); - if (!preg_match('/^[a-zA-Z0-9_-]+=?$/', $bbcode_tag)) + if (!preg_match('/^[a-zA-Z0-9_-]+$/', $bbcode_tag)) { global $user; trigger_error($user->lang['BBCODE_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING); |