From 5d4f20bed6fe7f671882072b238fe8ddacdbccc2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 2 Apr 2018 21:15:06 +0200 Subject: [PATCH] nhttpd: re-add CDATA attribute to xml output to keep compatibility with some plugins Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/db458bc52bc42db8a0bf37da4b622adcf137f092 Author: vanhofen Date: 2018-04-02 (Mon, 02 Apr 2018) Origin message was: ------------------ - nhttpd: re-add CDATA attribute to xml output to keep compatibility with some plugins --- src/nhttpd/yhttpd_core/yhook.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index 6cdce404b..a7bed8b05 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -544,7 +544,9 @@ std::string CyhookHandler::outValue(std::string _content) { std::string result = ""; switch (outType) { case xml: - result = convert_UTF8_To_UTF8_XML(utf8_check_is_valid(_content) ? _content.c_str() : iso_8859_1_to_utf8(_content).c_str()); + result += ""; break; case json: result = json_convert_string(_content);