From 553bf5ea7a495a7a3f2952cd657d5b72387140d1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 15 Aug 2017 17:22:14 +0200 Subject: [PATCH] Avoid conversion of bbcodes when disabled --- .../html/input/node/HtmlInputNodeWoltlabMetacode.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php index 1ffa4bfdaa..adce53b268 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacode.class.php @@ -117,6 +117,10 @@ class HtmlInputNodeWoltlabMetacode extends AbstractHtmlInputNode { // no available converter, metacode will be handled during output generation continue; } + else if (!BBCodeHandler::getInstance()->isAvailableBBCode($name)) { + // skip conversion of disallowed bbcodes + continue; + } /** @var IMetacodeConverter $converter */ if ($converter->validateAttributes($attributes)) { -- 2.20.1