mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
JsonUtils & improvements (#476)
* add JsonUtils * update * repair * update * ident * Schema correct msg other adjusts * fix effDel, ExceptionLog, cleanup * fix travis qt5.2 * not so funny * use Qthread interrupt instead abort bool * update services
This commit is contained in:
@@ -72,7 +72,7 @@ void CgiHandler::cmd_runscript()
|
||||
{
|
||||
QStringList scriptFilePathList(_args);
|
||||
scriptFilePathList.removeAt(0);
|
||||
|
||||
|
||||
QString scriptFilePath = scriptFilePathList.join('/');
|
||||
// relative path not allowed
|
||||
if (scriptFilePath.indexOf("..") >=0)
|
||||
|
@@ -60,9 +60,9 @@ void StaticFileServing::onServerStarted (quint16 port)
|
||||
txtRecord
|
||||
);
|
||||
Debug(_log, "Web Config mDNS responder started");
|
||||
|
||||
|
||||
// json-rpc for http
|
||||
_jsonProcessor = new JsonProcessor(QString("HTTP-API"),true);
|
||||
_jsonProcessor = new JsonProcessor(QString("HTTP-API"), _log, true);
|
||||
}
|
||||
|
||||
void StaticFileServing::onServerStopped () {
|
||||
@@ -200,4 +200,3 @@ void StaticFileServing::onRequestNeedsReply (QtHttpRequest * request, QtHttpRepl
|
||||
printErrorToReply (reply, QtHttpReply::MethodNotAllowed,"Unhandled HTTP/1.1 method " % command);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user