From 6656a65fb4766938a5a43e7687d470dee78479ae Mon Sep 17 00:00:00 2001 From: svenhoefer 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 Signed-off-by: Thilo Graf --- 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);