diff options
author | Jayaram R Pai | 2014-09-10 18:15:21 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-09-10 18:15:21 +0530 |
commit | 523bc7d9c6e6632f51ad98534806a937b3600557 (patch) | |
tree | 91bb235d288c1f9672b317cf83ad36b39e61d2c4 /website | |
parent | 4caaa04f8760beaa9c5947875fc16d49600ba8db (diff) | |
download | scilab-on-cloud-523bc7d9c6e6632f51ad98534806a937b3600557.tar.gz scilab-on-cloud-523bc7d9c6e6632f51ad98534806a937b3600557.tar.bz2 scilab-on-cloud-523bc7d9c6e6632f51ad98534806a937b3600557.zip |
fixed return data on system command encounter
Diffstat (limited to 'website')
-rw-r--r-- | website/helpers.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |