mirror of https://github.com/nealey/firebot
Fix procbot.esc() by escaping the escaper
So we can escape the escapee. While we escape. YO DAWG. Signed-off-by: Neale Pickett <neale@woozle.org>
This commit is contained in:
parent
4060898fa5
commit
f516b2dd9b
|
@ -23,7 +23,7 @@ class Runner(async_proc.process_dispatcher):
|
||||||
def esc(arg):
|
def esc(arg):
|
||||||
"Shell-escape an argument"
|
"Shell-escape an argument"
|
||||||
|
|
||||||
return "'" + arg.replace("'", "'\''") + "'"
|
return "'" + arg.replace("'", "'\\''") + "'"
|
||||||
|
|
||||||
|
|
||||||
def lesc(args):
|
def lesc(args):
|
||||||
|
|
Loading…
Reference in New Issue