Ticket #10735: comment_redirect_bug.diff
File comment_redirect_bug.diff, 549 bytes (added by , 16 years ago) |
---|
-
utils.py
25 25 if next is None: 26 26 next = urlresolvers.reverse(default_view) 27 27 if get_kwargs: 28 next += "?" + urllib.urlencode(get_kwargs) 28 import re 29 head = '&' if re.search(r'.*?[^/]+', next) else '?' 30 next += head + urllib.urlencode(get_kwargs) 29 31 return HttpResponseRedirect(next) 30 32 31 33 def confirmation_view(template, doc="Display a confirmation view."):