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

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-04-02 21:15:06 +02:00
committed by Thilo Graf
parent d15104daca
commit 6656a65fb4

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);