Fixes disallowed BBCodes error message with source codes
authorMatthias Schmidt <gravatronics@live.com>
Sun, 5 Jan 2014 13:49:28 +0000 (14:49 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 5 Jan 2014 13:49:28 +0000 (14:49 +0100)
Currently, when using a disallowed BBCode in [tt]…[/tt], for example, the disallowed BBCode isn't ignored, even though it isn't parsed.

wcfsetup/install/files/lib/system/bbcode/BBCodeParser.class.php

index e751a49710b51865d820dc0ccb4ec00f92aed80a..b9eb010b8cb4366ffdd9f8c08b55f430c2c7301d 100644 (file)
@@ -520,6 +520,7 @@ class BBCodeParser extends SingletonFactory {
                
                $this->setText($text);
                $this->buildTagArray(false);
+               $this->buildXMLStructure();
                
                $usedDisallowedBBCodes = array();
                foreach ($this->tagArray as $tag) {