mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +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 <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