From 15bbb00ef69fef41165bfaa91b4bea3cae74cff2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 25 Nov 2016 17:26:01 +0100 Subject: [PATCH] Fixed quote bbcode nesting --- .../files/lib/system/bbcode/HtmlBBCodeParser.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php index da877f77c9..b3f407890b 100644 --- a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php @@ -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; } -- 2.20.1