Skip to content

Commit

Permalink
extras encoding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Feb 16, 2021
1 parent 048a933 commit 0d9413f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def encode_extras(self):

def encode_extras_recursively(self, extras):
if isinstance(extras, dict):
for old_key in extras:
for old_key in extras.copy():
key = old_key
key = key.replace('%', '%25')
key = key.replace('.', '%2E')
Expand All @@ -97,7 +97,7 @@ def encode_extras_recursively(self, extras):

def decode_extras(self, extras):
if isinstance(extras, dict):
for old_key in extras:
for old_key in extras.copy():
key = old_key
key = key.replace('%25', '%')
key = key.replace('%2E', '.')
Expand Down

0 comments on commit 0d9413f

Please sign in to comment.