Projet

Général

Profil

0001-api-ignore-empty-nonces-27945.patch

Frédéric Péters, 13 novembre 2018 15:24

Télécharger (875 octets)

Voir les différences:

Subject: [PATCH] api: ignore empty nonces (#27945)

 wcs/api_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-