From: Alexander Ebert Date: Fri, 25 Nov 2016 16:26:01 +0000 (+0100) Subject: Fixed quote bbcode nesting X-Git-Tag: 3.0.0_RC_1~139 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15bbb00ef69fef41165bfaa91b4bea3cae74cff2;p=GitHub%2FWoltLab%2FWCF.git Fixed quote bbcode nesting --- 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; }