Commit 7a8b27f7 by Rune Kaagaard

Fixing bug with unicode templates.

The utils.md5s() function would break when calculating checksums
for non-ascii characters. Convert to utf-8 first.
parent c1b63d15
......@@ -301,7 +301,7 @@ def md5s(data):
''' Return MD5 hex digest of data. '''
digest = _md5()
digest.update(data)
digest.update(data.encode('utf-8'))
return digest.hexdigest()
def md5(filename):
......
Are you pondering what I'm pondering?
Are you pondering what I'm pøndering?
I think so Brain, but {{ answer }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment