mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user