From 1ba0878e38b7eb9b60a1106c56a0465c75aac0a6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 5 Dec 2022 20:44:19 +0100 Subject: [PATCH] yhook: try to fix quotation marks in epg titles Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8ed5d6b5238dc93cee32c131d77cca4a78e1744b Author: vanhofen Date: 2022-12-05 (Mon, 05 Dec 2022) Origin message was: ------------------ - yhook: try to fix quotation marks in epg titles --- src/nhttpd/yhttpd_core/yhook.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index 79946d5a3..94338b758 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -454,6 +454,7 @@ std::string CyhookHandler::outPair(std::string _key, std::string _content, bool result = outIndent() + "<" + _key + ">" + _content + ""; break; case json: + replace(_content, "\"", "\'"); result = outIndent() + "\"" + _key + "\": \"" + _content + "\""; if(_next) result += ",";