From 9890d60300d4e2d2cd6d4a87de81471f943e975c Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Mon, 20 Jan 2020 12:47:35 +0100 Subject: Fix /shell/run commands splitting This patch splits shell commands either with ';' or '\n'. --- src/ogRest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ogRest.py') diff --git a/src/ogRest.py b/src/ogRest.py index 781fb80..f46a331 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -62,7 +62,7 @@ class restResponse(): class ogThread(): def execcmd(client, request, ogRest): - if request.getrun() == None: + if not request.getrun(): response = restResponse(ogResponses.BAD_REQUEST) client.send(response.get()) return -- cgit v1.2.3-18-g5258