From c3cf1fb6775ef6bba65883206e292254f2a72286 Mon Sep 17 00:00:00 2001 From: Claudio-Daniel Freire Date: Wed, 7 Sep 2011 20:27:38 +0200 Subject: [PATCH] Escape quotes as well - it's not always OK to leave them unquoted --- src/nepi/util/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nepi/util/server.py b/src/nepi/util/server.py index 7a71eef7..ffed2c7b 100644 --- a/src/nepi/util/server.py +++ b/src/nepi/util/server.py @@ -46,7 +46,7 @@ def shell_escape(s): else: # unsafe string - escape def escp(c): - if (32 <= ord(c) < 127 or c in ('\r','\n','\t')) and c not in ("'",): + if (32 <= ord(c) < 127 or c in ('\r','\n','\t')) and c not in ("'",'"'): return c else: return "'$'\\x%02x''" % (ord(c),) -- 2.43.0