Allow sizes up to 512 when requesting libravatars, since that's what the spec says actually and I just misread it I guess?
This commit is contained in:
parent
f551a5214a
commit
8932317f08
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue