electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b813ba0bdd43a46b2fe0217f91ed9efa110ec88e
parent 37c07278d5db4306acbae117adc7d0cadfd93289
Author: ThomasV <thomasv@gitorious>
Date:   Wed, 22 Jul 2015 15:24:15 +0200

sanitize timestamp and expiration in requests

Diffstat:
Mlib/paymentrequest.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/paymentrequest.py b/lib/paymentrequest.py @@ -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