0001-misc-catch-all-unicode-exceptions-when-checking-next.patch
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 |
- |