nhttpd: re-add CDATA attribute to xml output to keep compatibility with some plugins

Origin commit data
------------------
Commit: db458bc52b
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2018-04-02 21:15:06 +02:00
parent c971918205
commit 5d4f20bed6

View File

@@ -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 += "<![CDATA[";
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);