0001-api-ignore-empty-nonces-27945.patch
wcs/api_utils.py | ||
---|---|---|
71 | 71 |
% (duration, delta)) |
72 | 72 |
# check nonce |
73 | 73 |
nonce = get_request().form.get('nonce') |
74 |
if nonce is not None:
|
|
74 |
if nonce: |
|
75 | 75 |
# compute end date of the nonce as an unix timestamp |
76 | 76 |
until = timestamp + datetime.timedelta(seconds=duration) |
77 | 77 |
until = calendar.timegm(until.timetuple()) |
78 |
- |