mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@6691 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4f41d936e2
commit
ff2b4e4e8f
1 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue