From 5fff9dca3689f92d947875e5e791fa685502a9ba Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 23 Jan 2018 18:14:31 +0100 Subject: [PATCH] Support empty/self-closing XML elements --- wcfsetup/install/files/lib/util/XMLWriter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.20.1