Ticket #5236 enhancement closed fixed
t.web.util.redirectTo should reject unicode URLs
| Reported by: | ivank | Owned by: | exarkun |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | web | Keywords: | easy |
| Cc: | jknight, moijes12@… | Branch: | |
| Author: | Launchpad Bug: |
Description
If you have something like this in your render:
return redirectTo(url, request)
and you pass a unicode object as the url, you get a rather mysterious error page from twisted.web (with the redirection headers set!):
"500 - Request did not return a string"
redirectTo should really just throw TypeError if you pass in a unicode object.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

