diff options
author | Jan <59206115+Threated@users.noreply.github.com> | 2023-01-11 10:19:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 11:19:29 +0200 |
commit | 4a825bc76b668951923c57aaff1020c3892f8de2 (patch) | |
tree | f39c9cfcf22579f9242df20757ad358e417f25a4 /redis/commands/helpers.py | |
parent | f46d7f3ef7ce64f90acd4a3dcc14375ab9ae9c9d (diff) | |
download | redis-py-4a825bc76b668951923c57aaff1020c3892f8de2.tar.gz |
String cleanse (#2548)
* Fixed string escape and added tests
* Add Change
* Name change
Diffstat (limited to 'redis/commands/helpers.py')
-rw-r--r-- | redis/commands/helpers.py | 1 |
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}"' |