Commit 951d822b by Csók Tamás

made safety changes

parent 72c637ab
...@@ -38,11 +38,12 @@ def wall(text): ...@@ -38,11 +38,12 @@ def wall(text):
if text is None: if text is None:
logger.error("Incorrect function call") logger.error("Incorrect function call")
else: else:
subprocess.call("echo %s | wall" % text, shell=True) process = subprocess.Popen("wall", stdin=subprocess.PIPE, shell=True)
process.communicate(input=text)[0]
def accept(): def accept():
import httplibs import httplib
if not os.path.isfile("%s/%s" % (get_temp_dir(), file_name)): if not os.path.isfile("%s/%s" % (get_temp_dir(), file_name)):
logger.error("There isn't a request received currently") logger.error("There isn't a request received currently")
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment