tenderlove/mechanize — Issue #197: Encode the uri obtained from response_redirect
Author: pathsny
Created: 2012-02-04 11:03:41+00:00
State: open

Mechanize::HTTP::Agent has a method response_redirect where you have
new_uri = from_uri + response['Location'].to_s

It's possible that response['Location'] needs to be encoded.
This should be replaced with

new_uri = from_uri + URI.encode(response['Location'].to_s)