rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Simon Chiang <simon.a.chiang@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: Re: parse_query / normalize_params issues
Date: Fri, 19 Mar 2010 14:13:02 -0700 (PDT)	[thread overview]
Message-ID: <2c41576d-b1d2-4b03-b394-ea15f1b402de@k5g2000pra.googlegroups.com> (raw)
In-Reply-To: <87wrx9i71r.fsf@gmail.com>

See also http://groups.google.com/group/rack-devel/browse_thread/thread/f81f79e633b9e086
-- same question.

On Mar 18, 4:44 pm, Christian Neukirchen <chneukirc...@gmail.com>
wrote:
> Date: Thu, 18 Mar 2010 15:32:19 -0700 (PDT)
> From: Muffin Cake <cakemuffi...@yahoo.com>
> Subject: parse_query / normalize_params issues
> To: chneukirc...@gmail.com
>
> Hey,
>
> Rack  is great.
>
> I found a small issue, that took me quite a while to uncover though:
>
> In parse_query and normalize_params there is a special case when a param starts and ends with " or '. And it removes them. What is the reasoning behind this?
>
> app?q="a"      -->  {"q"=>"a"}   instead of {"q"=>"\"a\""}
>
> eg. compare to google, searching for "funny quotes"
>
> There is even a test case for this behaviour, which I found oddly surprising.
>
> Thanks!

To unsubscribe from this group, send email to rack-devel+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

  reply	other threads:[~2010-03-19 21:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-18 22:44 [Muffin Cake] parse_query / normalize_params issues Christian Neukirchen
2010-03-19 21:13 ` Simon Chiang [this message]
2010-04-29 22:08 ` Ryan Tomayko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2c41576d-b1d2-4b03-b394-ea15f1b402de@k5g2000pra.googlegroups.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).