windows - Rails 3 query string -
very weird error here. correctly request "/users/8788234"
in rails call:
redirect_to(:controller => 'login', :from_external_page => true, :on_login => request.env['request_uri']) , return we see (as we'd expect) in rails log: redirected
https://sampleapp.com/login?from_external_page=true&on_login=%2fusers%2f8788234 but next request see ip has values of query string scrambled:
started "/login?from_external_page=gehr&on_login=%2shfref%2s8788234" xx.xxx.xxx.xxx @ yyyy-mm-dd this both makes query string values meaningless , causes following error:
argumenterror: invalid %-encoding (the %2f changed %2s invalid). every single value of each key-value pair within query string getting shifted 13 characters. every time we've seen this, user agent reads: "mozilla/5.0 (compatible; msie 9.0; windows nt 6.1; wow64; trident/5.0)", see user agent navigate application. has ever seen this? http://www.whatismybrowser.com/ tells me user agent ie9 running on windows 7, haven't been able reproduce bug.
this encoding issue. using rails 4 , following sample query string of current project. note first parameter in querystring "utf8=✓" missing in querystring.
profiles?utf8=✓&min_age=1&max_age=99&min_height=1&max_height=6&min_weight=1&max_weight=400 try adding "# encoding: utf-8 @ beginning of file"
Comments
Post a Comment