# HG changeset patch # User František Kučera # Date 1650722173 -7200 # Node ID 15b403e3ae6ed1d3aeb8344d2cd0a54a8ce85996 # Parent fa4a69895ea50f6ea82932aac90c6c9be4ae8d72 pass-through null bytes 0x00 if any (there should be none in XML) diff -r fa4a69895ea5 -r 15b403e3ae6e src/XMLCommand.h --- a/src/XMLCommand.h Sat Apr 23 14:22:24 2022 +0200 +++ b/src/XMLCommand.h Sat Apr 23 15:56:13 2022 +0200 @@ -99,9 +99,9 @@ void characters(const string_t chars) { // There should be no null bytes in XML, 0x00 is invalid here. - // No 0x00 should come here through the XML library, - // but if any comes, the value is trimmed at the first null byte. - currentValue << chars.c_str(); + // No 0x00 should come here through the XML library. + // However, if any comes, such value will be passed through unchanged i.e. including the 0x00. + currentValue << chars; } public: