Skip to content

Commit

Permalink
Remove encode() to fix non-ASCII XML hashing
Browse files Browse the repository at this point in the history
Fixes #401
  • Loading branch information
jnm committed Jan 2, 2018
1 parent cc63420 commit 1c9be9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/logger/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def get_hash(input_string):
:return: The resulting hash.
:rtype: str
'''
return sha256(input_string.encode('UTF-8')).hexdigest()
return sha256(input_string).hexdigest()

@property
def point(self):
Expand Down

0 comments on commit 1c9be9c

Please sign in to comment.