mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
fix webif xml encoding
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <cstring>
|
||||
#include <strings.h>
|
||||
|
||||
// UTF8 convert
|
||||
#include <zapit/zapit.h>
|
||||
// yhttpd
|
||||
#include "yhook.h"
|
||||
#include "helper.h"
|
||||
@@ -540,7 +542,7 @@ std::string CyhookHandler::outValue(std::string _content) {
|
||||
std::string result = "";
|
||||
switch (outType) {
|
||||
case xml:
|
||||
result = "<![CDATA[" + _content + "]]>";
|
||||
result = convert_UTF8_To_UTF8_XML(_content.c_str());
|
||||
break;
|
||||
case json:
|
||||
result = json_convert_string(_content);
|
||||
|
Reference in New Issue
Block a user