From: CMDR furrycat Date: Fri, 16 Sep 2016 12:16:03 +0000 (+0100) Subject: Security. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=3e8128306dc9326df253a050045229193eb3132b;p=furrycat%2Fcatbot.git Security. --- diff --git a/bot.py b/bot.py index dc1b773..bd70c38 100755 --- 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))