mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
fix webif xml encoding
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0d4c7b2bb2
Author: TangoCash <eric@loxat.de>
Date: 2016-04-03 (Sun, 03 Apr 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
|
// UTF8 convert
|
||||||
|
#include <zapit/zapit.h>
|
||||||
// yhttpd
|
// yhttpd
|
||||||
#include "yhook.h"
|
#include "yhook.h"
|
||||||
#include "helper.h"
|
#include "helper.h"
|
||||||
@@ -540,7 +542,7 @@ std::string CyhookHandler::outValue(std::string _content) {
|
|||||||
std::string result = "";
|
std::string result = "";
|
||||||
switch (outType) {
|
switch (outType) {
|
||||||
case xml:
|
case xml:
|
||||||
result = "<![CDATA[" + _content + "]]>";
|
result = convert_UTF8_To_UTF8_XML(_content.c_str());
|
||||||
break;
|
break;
|
||||||
case json:
|
case json:
|
||||||
result = json_convert_string(_content);
|
result = json_convert_string(_content);
|
||||||
|
Reference in New Issue
Block a user