aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2017-11-23 16:25:48 +0100
committerJoshyPHP <s9e.dev@gmail.com>2017-11-23 16:25:48 +0100
commita7664811dd3696e17a78fd98fec49f9beaf4579d (patch)
tree85fac45e7205bba7e3b40a648cfd9fc5d74382df /phpBB/phpbb
parent0517e43dff37fdc64167d0853cfc7ee0b77007b5 (diff)
downloadforums-a7664811dd3696e17a78fd98fec49f9beaf4579d.tar
forums-a7664811dd3696e17a78fd98fec49f9beaf4579d.tar.gz
forums-a7664811dd3696e17a78fd98fec49f9beaf4579d.tar.bz2
forums-a7664811dd3696e17a78fd98fec49f9beaf4579d.tar.xz
forums-a7664811dd3696e17a78fd98fec49f9beaf4579d.zip
[ticket/15464] Detect BBCodes in uppercase when reparsing
PHPBB3-15464
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/textreparser/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/textreparser/base.php b/phpBB/phpbb/textreparser/base.php
index 27d7bc1f27..2ee6ea2cb3 100644
--- a/phpBB/phpbb/textreparser/base.php
+++ b/phpBB/phpbb/textreparser/base.php
@@ -153,8 +153,8 @@ abstract class base implements reparser_interface
{
// Look for the closing tag inside of a e element, in an element of the same name, e.g.
// <e>[/url]</e></URL>
- $match = '<e>[/' . $bbcode . ']</e></' . strtoupper($bbcode) . '>';
- if (strpos($record['text'], $match) !== false)
+ $match = '<e>[/' . $bbcode . ']</e></' . $bbcode . '>';
+ if (stripos($record['text'], $match) !== false)
{
return true;
}