0003-utils-allow-string-replacement-in-next-parameters-32.patch
src/authentic2/utils.py | ||
---|---|---|
907 | 907 |
'''Select the first valid next URL''' |
908 | 908 |
next_url = (include_post and get_next_url(request.POST, field_name=field_name)) or get_next_url(request.GET, field_name=field_name) |
909 | 909 |
if good_next_url(request, next_url): |
910 |
if replace: |
|
911 |
for key, value in replace.items(): |
|
912 |
next_url = next_url.replace(key, urlparse.quote(value)) |
|
910 | 913 |
return next_url |
911 | 914 |
return default |
912 | 915 | |
913 |
- |