make sure we encode data as utf8 before checksumming
This commit is contained in:
parent
76988b6081
commit
ea89be5f4a
@ -240,6 +240,8 @@ def splitFields(string):
|
||||
##############################################################################
|
||||
|
||||
def checksum(data):
|
||||
if isinstance(data, unicode):
|
||||
data = data.encode("utf-8")
|
||||
return sha1(data).hexdigest()
|
||||
|
||||
def fieldChecksum(data):
|
||||
|
Loading…
Reference in New Issue
Block a user