Allow sizes up to 512 when requesting libravatars, since that's what the spec says actually and I just misread it I guess?

pull/1/head
Danielle McLean 5 years ago
parent f551a5214a
commit 8932317f08
Signed by: 00dani
GPG Key ID: 8EB789DDF3ABD240

@ -19,8 +19,8 @@ def libravatar(request, hash):
size = int(size)
except ValueError:
return utils.bad_req('size parameter must be an integer')
if not 1 <= size <= 128:
return utils.bad_req('size parameter must be between 1 and 128')
if not 1 <= size <= 512:
return utils.bad_req('size parameter must be between 1 and 512')
if len(hash) == 32:
where = {'email_md5': hash}

Loading…
Cancel
Save