Security.
authorCMDR furrycat <elite@furrycat.net>
Fri, 16 Sep 2016 12:16:03 +0000 (13:16 +0100)
committerCMDR furrycat <elite@furrycat.net>
Mon, 19 Sep 2016 20:10:27 +0000 (21:10 +0100)
bot.py

diff --git a/bot.py b/bot.py
index dc1b773..bd70c38 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -105,7 +105,7 @@ def do_edi(message, command, raw, p):
 @asyncio.coroutine
 def do_fork(message, command, raw):
   yield from client.send_typing(message.channel)
-  if re.search(r'[^A-Za-z0-9-_."\'"]', raw):
+  if re.search(r'[^A-Za-z0-9-_."\'\s]', raw):
     yield from say(message.channel, 'hiss')
     return
   p = pexpect.spawnu('./{}'.format(raw))