Fixed buffer handling
authorAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2016 16:12:17 +0000 (18:12 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 28 Sep 2016 16:12:17 +0000 (18:12 +0200)
wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php

index 25897e04957d3be81f25062704cdefae8baebbbf..25ac4d1687afd8f70f9d340b53347f403e3a0550 100644 (file)
@@ -464,6 +464,10 @@ class HtmlBBCodeParser extends BBCodeParser {
                }
                
                $data = array_pop($this->openTagIdentifiers);
+               if ($data === '_BUFFER_PLACEHOLDER_') {
+                       $data = array_pop($this->openTagIdentifiers);
+               }
+               
                if ($data['name'] !== $name) {
                        // check if this is a source code tag as some people
                        // love to nest the same source bbcode