From: Alexander Ebert Date: Wed, 28 Sep 2016 09:50:18 +0000 (+0200) Subject: Fixed code bbcode causing the parser to fail X-Git-Tag: 3.0.0_Beta_2~91 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e466404a67ef67e8ed67f3e22f5cd5f38311307c;p=GitHub%2FWoltLab%2FWCF.git Fixed code bbcode causing the parser to fail --- diff --git a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php index af6db4cef0..0bd2e50c13 100644 --- a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCodeParser.class.php @@ -452,7 +452,7 @@ class HtmlBBCodeParser extends BBCodeParser { */ protected function buildClosingTag(array $tag) { $name = strtolower($tag['name']); - if (!$this->isValidBBCodeName($name)) { + if (!$this->isValidBBCodeName($name) || empty($this->openTagIdentifiers)) { return $tag['source']; }