GNOME Bugzilla – Bug 662806
Should do URI encoding after 301 redirect response
Last modified: 2011-11-12 14:29:03 UTC
When I go to page (in Finnish) http://www.nordea.fi/Henkil%C3%B6asiakkaat/Kortit+ja+maksut/Kortit/Hinnat/1027322.html and click link "Päivittäiset raha-asiat/Tiliasiointi" at the bottom, I get error page Too many redirects from Epiphany. With Firefox the link works fine. Analysis of the issue: The webserver is running MS-IIS, and it responds first with 301 redirect for the first real redirect. However 301-response "Location" header is not URI/percent encoded correctly (against URI specification). Then Epiphany requests the moved page by simply copying URI from Location header without percent encoding non-ASCII octets. Then MS-IIS re-answers with 301 moved to the same path. Failure is really MS-IIS here, but Firefox seems to percent encode non-ASCII octets received in the 301 response Location header, and thus Firefox received the page I was expecting. Please percent encode URIs even in this case.
Created attachment 200237 [details] [review] Patch to escape non-ASCII octets in Location received in 301 response Patch to escape non-ASCII octets in Location received in 301 response. This is also what Firefox does.
I committed a simpler patch to master