mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16267] Check whether the index exists in ACP BBcodes - PHP 7.4
PHPBB3-16267
This commit is contained in:
parent
044d327818
commit
5eae76b209
1 changed files with 1 additions and 2 deletions
|
@ -207,8 +207,7 @@ class acp_bbcodes
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
// Grab the end, interrogate the last closing tag
|
// Grab the end, interrogate the last closing tag
|
||||||
if (
|
if (isset($info['test']) && $info['test'] === '1'
|
||||||
isset($info['test']) && $info['test'] === '1'
|
|
||||||
|| in_array(strtolower($data['bbcode_tag']), $hard_coded)
|
|| in_array(strtolower($data['bbcode_tag']), $hard_coded)
|
||||||
|| (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded))
|
|| (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue