From: Alexander Ebert Date: Tue, 23 Jan 2018 17:14:31 +0000 (+0100) Subject: Support empty/self-closing XML elements X-Git-Tag: 3.1.0_RC_2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5fff9dca3689f92d947875e5e791fa685502a9ba;p=GitHub%2FWoltLab%2FWCF.git Support empty/self-closing XML elements --- diff --git a/wcfsetup/install/files/lib/util/XMLWriter.class.php b/wcfsetup/install/files/lib/util/XMLWriter.class.php index 0b1ef91894..77eba26235 100644 --- a/wcfsetup/install/files/lib/util/XMLWriter.class.php +++ b/wcfsetup/install/files/lib/util/XMLWriter.class.php @@ -129,7 +129,7 @@ class XMLWriter { } // content - $this->xml->writeCdata(StringUtil::escapeCDATA($cdata)); + if ($cdata !== '') $this->xml->writeCdata(StringUtil::escapeCDATA($cdata)); $this->endElement(); }