mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
hash
This commit is contained in:
parent
07dc184ca0
commit
468d2014d5
@ -299,7 +299,7 @@ class ImgHandler(tornado.web.RequestHandler):
|
||||
if args.get('gravatar','').lower() == 'yes':
|
||||
# They have requested that we hash the email, and send it to Gravatar.
|
||||
default = "404"
|
||||
gravatar_url = "https://secure.gravatar.com/avatar/" + hashlib.md5(string.lower()).hexdigest() + "?"
|
||||
gravatar_url = "https://secure.gravatar.com/avatar/" + hashlib.md5(string.lower().encode('utf-8')).hexdigest() + "?"
|
||||
gravatar_url += urlencode({'default':default, 'size':str(sizey)})
|
||||
elif args.get('gravatar','').lower() == 'hashed':
|
||||
# They have sent us a pre-hashed email address.
|
||||
|
Loading…
x
Reference in New Issue
Block a user