Fixed check for disallowed bbcodes
authorAlexander Ebert <ebert@woltlab.com>
Sun, 24 Jul 2016 10:03:33 +0000 (12:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 24 Jul 2016 10:03:33 +0000 (12:03 +0200)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php

index ad13cd6b4c8be4ab2b18f821709b83d983901081..f031c9159835a6a513849ae49708fd9ea9768d1b 100644 (file)
@@ -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) {