Fixed code bbcode causing the parser to fail
authorAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2016 09:50:18 +0000 (11:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2016 09:50:23 +0000 (11:50 +0200)
wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php

index af6db4cef0e3c1f4cda895d88b227306181560d6..0bd2e50c13b23660a9d8ae47a5f11c2bb094fb63 100644 (file)
@@ -452,7 +452,7 @@ class HtmlBBCodeParser extends BBCodeParser {
         */
        protected function buildClosingTag(array $tag) {
                $name = strtolower($tag['name']);
-               if (!$this->isValidBBCodeName($name)) {
+               if (!$this->isValidBBCodeName($name) || empty($this->openTagIdentifiers)) {
                        return $tag['source'];
                }