diff options
author | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-25 18:35:40 +0100 |
---|---|---|
committer | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-25 18:35:58 +0100 |
commit | 5eae76b209aeab4728e2b1dc599079ae925f028a (patch) | |
tree | 829b5b965224f5353818e65e36b2fee2f0827cf8 /phpBB | |
parent | 044d3278188b53243d78d9de6095f2bfffdb17a2 (diff) | |
download | forums-5eae76b209aeab4728e2b1dc599079ae925f028a.tar forums-5eae76b209aeab4728e2b1dc599079ae925f028a.tar.gz forums-5eae76b209aeab4728e2b1dc599079ae925f028a.tar.bz2 forums-5eae76b209aeab4728e2b1dc599079ae925f028a.tar.xz forums-5eae76b209aeab4728e2b1dc599079ae925f028a.zip |
[ticket/16267] Check whether the index exists in ACP BBcodes - PHP 7.4
PHPBB3-16267
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/acp/acp_bbcodes.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index 275188c5a1..5e39055f50 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -207,8 +207,7 @@ class acp_bbcodes $db->sql_freeresult($result); // Grab the end, interrogate the last closing tag - if ( - isset($info['test']) && $info['test'] === '1' + if (isset($info['test']) && $info['test'] === '1' || in_array(strtolower($data['bbcode_tag']), $hard_coded) || (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded)) ) |