summaryrefslogtreecommitdiff
path: root/redis/commands/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/helpers.py')
-rw-r--r--redis/commands/helpers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/commands/helpers.py b/redis/commands/helpers.py
index 6989ab5..b65cd1a 100644
--- a/redis/commands/helpers.py
+++ b/redis/commands/helpers.py
@@ -115,6 +115,7 @@ def quote_string(v):
if len(v) == 0:
return '""'
+ v = v.replace("\\", "\\\\")
v = v.replace('"', '\\"')
return f'"{v}"'