aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-11-26 18:33:54 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-11-26 18:33:54 +0100
commit81a71f71c72514dfd50afa48c49cc0c355d70e69 (patch)
treeff55b102dd0f8a75d34f6e40f9d8be8fb3834ca7 /phpBB
parent85ece822db5c73b17a29764d334b910bbd1dfa24 (diff)
parenta7664811dd3696e17a78fd98fec49f9beaf4579d (diff)
downloadforums-81a71f71c72514dfd50afa48c49cc0c355d70e69.tar
forums-81a71f71c72514dfd50afa48c49cc0c355d70e69.tar.gz
forums-81a71f71c72514dfd50afa48c49cc0c355d70e69.tar.bz2
forums-81a71f71c72514dfd50afa48c49cc0c355d70e69.tar.xz
forums-81a71f71c72514dfd50afa48c49cc0c355d70e69.zip
Merge pull request #5051 from JoshyPHP/ticket/15464
[ticket/15464] Detect BBCodes in uppercase when reparsing
Diffstat (limited to '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;
}