From ca0db30964bcf4250c189b6b19df52d12c8b0cad Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 24 Jul 2016 12:03:33 +0200 Subject: [PATCH] Fixed check for disallowed bbcodes --- .../system/html/input/node/HtmlInputNodeProcessor.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index ad13cd6b4c..f031c91598 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -64,7 +64,7 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor { $this->invokeNodeHandlers('wcf\system\html\input\node\HtmlInputNode', [], function(IHtmlNode $nodeHandler) use (&$result) { $disallowed = $nodeHandler->isAllowed($this); if ($disallowed) { - $result[] = array_merge($result, $disallowed); + $result = array_merge($result, $disallowed); } }); @@ -73,7 +73,8 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor { 'color' => 'woltlab-color', 'font' => 'woltlab-size', 'size' => 'woltlab-size', - 'spoiler' => 'woltlab-spoiler' + 'spoiler' => 'woltlab-spoiler', + 'url' => 'a' ]; foreach ($customTags as $bbcode => $tagName) { -- 2.20.1