From: Alexander Ebert Date: Sun, 24 Jul 2016 10:03:33 +0000 (+0200) Subject: Fixed check for disallowed bbcodes X-Git-Tag: 3.0.0_Beta_1~981 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca0db30964bcf4250c189b6b19df52d12c8b0cad;p=GitHub%2FWoltLab%2FWCF.git Fixed check for disallowed bbcodes --- 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) {