Fixed quote bbcode nesting
authorAlexander Ebert <ebert@woltlab.com>
Fri, 25 Nov 2016 16:26:01 +0000 (17:26 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 25 Nov 2016 16:26:01 +0000 (17:26 +0100)
wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php

index da877f77c90db6d8c7df559f07898879c47c8c31..b3f407890b9ed09383dc6c52cde2f6cfb4aa10eb 100644 (file)
@@ -125,6 +125,10 @@ class HtmlBBCodeParser extends BBCodeParser {
                                        $sibling = $this->tagArray[$j];
                                        if ($sibling['name'] === $name) {
                                                if (!$sibling['closing']) {
+                                                       if ($name === 'quote') {
+                                                               continue;
+                                                       }
+                                                       
                                                        // disallow the same tag opened again
                                                        $badTags[] = $j;
                                                }