From 523bc7d9c6e6632f51ad98534806a937b3600557 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Wed, 10 Sep 2014 18:15:21 +0530 Subject: fixed return data on system command encounter --- website/helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/helpers.py b/website/helpers.py index d5a5a62..b3894ba 100644 --- a/website/helpers.py +++ b/website/helpers.py @@ -10,7 +10,9 @@ def scilab_run(code, token, book_id, dependency_exists): 'unix\(.*\)|unix_g\(.*\)|unix_w\(.*\)|unix_x\(.*\)|unix_s\(.*\)|host|newfun|execstr|ascii|mputl|dir\(\)' ) if system_commands.search(code): - return "System Commands not allowed" + return { + 'output': 'System Commands not allowed', + } #Remove all clear; code = re.sub(r'clear.*all|clear|clc\(\)|clc', '', code) -- cgit