diff options
-rw-r--r-- | deluge/config.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deluge/config.py b/deluge/config.py index 40095139e..c893bd83b 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -111,8 +111,13 @@ def find_json_objects(s): if start < 0: return [] + quoted = False for index, c in enumerate(s[offset:]): - if c == "{": + if c == '"': + quoted = not quoted + elif quoted: + continue + elif c == "{": opens += 1 elif c == "}": opens -= 1 |