sanitize timestamp and expiration in requests
This commit is contained in:
parent
37c07278d5
commit
b813ba0bdd
|
@ -292,6 +292,10 @@ def make_unsigned_request(req):
|
|||
addr = req['address']
|
||||
time = req.get('time', 0)
|
||||
expires = req.get('exp', 0)
|
||||
if type(time) != int:
|
||||
time = 0
|
||||
if type(exp) != int:
|
||||
exp = 0
|
||||
amount = req['amount']
|
||||
if amount is None:
|
||||
amount = 0
|
||||
|
|
Loading…
Reference in New Issue