mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
- 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:
@@ -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