Request unescapes redirected action
Reported by bahuvrihi | March 19th, 2009 @ 12:22 AM
And this could potentially cause problems if the redirected action has some escaped information... not entirely sure if that will be the case or not but it is notable that the test links fail without this patch:
# make action relative to host
action, query = action.split('?', 2)
uri = URI.parse(hash['headers']['Referer'].to_s)
uri.path = action
uri.query = query.gsub(/\s/, "+")
uri.to_s
Perhaps parse the query string on the redirected uri and rebuild.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป