Projet

Général

Profil

0001-misc-catch-all-unicode-exceptions-when-checking-next.patch

Frédéric Péters, 02 juin 2019 21:38

Télécharger (818 octets)

Voir les différences:

Subject: [PATCH] misc: catch all unicode exceptions when checking next_url
 (#33083)

 mellon/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mellon/views.py
54 54
        return
55 55
    try:
56 56
        next_url.encode('ascii')
57
    except UnicodeDecodeError:
57
    except UnicodeError:
58 58
        log.warning('next parameter ignored, as is\'s not an ASCII string')
59 59
        return
60 60
    if not utils.same_origin(next_url, request.build_absolute_uri()):
61
-