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 += ",";