rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Rack::Utils.parse_query doesn't work for google refers (Rack 1.2.1)
@ 2010-07-28 23:59 bobserr
  2010-07-29  0:54 ` Michael Fellinger
  0 siblings, 1 reply; 2+ messages in thread
From: bobserr @ 2010-07-28 23:59 UTC (permalink / raw)
  To: Rack Development

Using Rack 1.2.1, Rails 2.3.8, 1.8.7

Hi, is anyone else having issues with Rack::Utils.parse_query under
Rack 1.2.1?

The following string does not parse properly. This is a HTTP_REFERER
string from Google:

http://www.google.com/search?q=4069431971&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

The following is returned:

{"oe"=>"utf-8", "http://www.google.com/search?q"=>"4069431971",
"rls"=>"org.mozilla:en-US:official", "aq"=>"t", "client"=>"firefox-a",
"ie"=>"utf-8"}

Note, the first parameter, "q", is parsed as "http://www.google.com/
search?q" rather than simply "q". This isn't correct.

Thanks,

Bob

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Rack::Utils.parse_query doesn't work for google refers (Rack  1.2.1)
  2010-07-28 23:59 Rack::Utils.parse_query doesn't work for google refers (Rack 1.2.1) bobserr
@ 2010-07-29  0:54 ` Michael Fellinger
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Fellinger @ 2010-07-29  0:54 UTC (permalink / raw)
  To: rack-devel

On Thu, Jul 29, 2010 at 8:59 AM, bobserr <bobserr@gmail.com> wrote:
> Using Rack 1.2.1, Rails 2.3.8, 1.8.7
>
> Hi, is anyone else having issues with Rack::Utils.parse_query under
> Rack 1.2.1?

Please note that parse_query does exactly that, it parses a query string.

>
> The following string does not parse properly. This is a HTTP_REFERER
> string from Google:
>
> http://www.google.com/search?q=4069431971&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
>
> The following is returned:
>
> {"oe"=>"utf-8", "http://www.google.com/search?q"=>"4069431971",
> "rls"=>"org.mozilla:en-US:official", "aq"=>"t", "client"=>"firefox-a",
> "ie"=>"utf-8"}
>
> Note, the first parameter, "q", is parsed as "http://www.google.com/
> search?q" rather than simply "q". This isn't correct.
>
> Thanks,
>
> Bob



-- 
Michael Fellinger
CTO, The Rubyists, LLC
I check email a couple times daily; to reach me sooner, use:
http://awayfind.com/manveru

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-29  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-28 23:59 Rack::Utils.parse_query doesn't work for google refers (Rack 1.2.1) bobserr
2010-07-29  0:54 ` Michael Fellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).