aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-11-28 15:01:13 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-11-28 15:01:13 +0000
commitff2b4e4e8f319e9c7346d33a79a3e1458464b7e8 (patch)
tree28df4ddb60135bcf9de507fab67a76b0b74056e7 /phpBB/includes
parent4f41d936e27cf4c0191b7c4bf5544f53694238a0 (diff)
downloadforums-ff2b4e4e8f319e9c7346d33a79a3e1458464b7e8.tar
forums-ff2b4e4e8f319e9c7346d33a79a3e1458464b7e8.tar.gz
forums-ff2b4e4e8f319e9c7346d33a79a3e1458464b7e8.tar.bz2
forums-ff2b4e4e8f319e9c7346d33a79a3e1458464b7e8.tar.xz
forums-ff2b4e4e8f319e9c7346d33a79a3e1458464b7e8.zip
#5656
git-svn-id: file:///svn/phpbb/trunk@6691 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index dd1897ecbd..0853de31e0 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -134,7 +134,18 @@ class acp_bbcodes
}
}
- if (!preg_match('#\[' . $data['bbcode_tag'] .'].*?\[/' . $data['bbcode_tag'] . ']#s', $bbcode_match))
+ if (substr($data['bbcode_tag'], -1) === '=')
+ {
+ $open = '\[' . $data['bbcode_tag'] . '.*?]';
+ $close = '\[/' . substr($data['bbcode_tag'], 0, -1) . ']';
+ }
+ else
+ {
+ $open = '\[' . $data['bbcode_tag'] . ']';
+ $close = '\[/' . $data['bbcode_tag'] . ']';
+ }
+
+ if (!preg_match('#' . $open . '.*?' . $close . '#s', $bbcode_match))
{
trigger_error($user->lang['BBCODE_OPEN_ENDED_TAG'] . adm_back_link($this->u_action), E_USER_WARNING);
}