mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
git-svn-id: file:///svn/phpbb/trunk@6867 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
11300e3ceb
commit
289998c5e7
1 changed files with 4 additions and 5 deletions
|
@ -136,20 +136,19 @@ class acp_bbcodes
|
|||
|
||||
if (substr($data['bbcode_tag'], -1) === '=')
|
||||
{
|
||||
$open = '\[' . $data['bbcode_tag'] . '.*?]';
|
||||
$close = '\[/' . substr($data['bbcode_tag'], 0, -1) . ']';
|
||||
$test = substr($data['bbcode_tag'], 0, -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$open = '\[' . $data['bbcode_tag'] . ']';
|
||||
$close = '\[/' . $data['bbcode_tag'] . ']';
|
||||
$test = $data['bbcode_tag'];
|
||||
}
|
||||
|
||||
if (!preg_match('#' . $open . '.*?' . $close . '#s', $bbcode_match))
|
||||
if (!preg_match('%\\[' . $test . '[^]]*].*?\\[/' . $test . ']%s', $bbcode_match))
|
||||
{
|
||||
trigger_error($user->lang['BBCODE_OPEN_ENDED_TAG'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
// @todo - bbcode_tag <= 16, bbcode_helpline <= 255, bbcode_match <= 4000
|
||||
$sql_ary = array(
|
||||
'bbcode_tag' => $data['bbcode_tag'],
|
||||
'bbcode_match' => $bbcode_match,
|
||||
|
|
Loading…
Add table
Reference in a new issue