mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
sanitize timestamp and expiration in requests
This commit is contained in:
parent
37c07278d5
commit
b813ba0bdd
1 changed files with 4 additions and 0 deletions
|
@ -292,6 +292,10 @@ def make_unsigned_request(req):
|
||||||
addr = req['address']
|
addr = req['address']
|
||||||
time = req.get('time', 0)
|
time = req.get('time', 0)
|
||||||
expires = req.get('exp', 0)
|
expires = req.get('exp', 0)
|
||||||
|
if type(time) != int:
|
||||||
|
time = 0
|
||||||
|
if type(exp) != int:
|
||||||
|
exp = 0
|
||||||
amount = req['amount']
|
amount = req['amount']
|
||||||
if amount is None:
|
if amount is None:
|
||||||
amount = 0
|
amount = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue