rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Double quotes are not preserved confirmation
@ 2010-05-14 15:58 Neeraj Singh
  2010-05-14 23:32 ` Simon Chiang
  0 siblings, 1 reply; 7+ messages in thread
From: Neeraj Singh @ 2010-05-14 15:58 UTC (permalink / raw)
  To: Rack Development

I am working on this rails ticket https://rails.lighthouseapp.com/projects/8994/tickets/4576
.

Then I found this test case http://github.com/rack/rack/blob/master/test/spec_rack_utils.rb#L35
. As you can see if the data has double quotes then double quotes are
being removed.

However if the data has a new line character then double quotes are
preserved.

Questions:

1) I looked at the rack spec but could not find any mention of this
behavior that double quotes should be removed only if string does not
contain a new line character.

2) If the existing behavior is the correct behavior then could you
please add this test case which makes it explicitly clear that string
with new line character will have double quotes preserver.  Here is my
commit.

http://github.com/neerajdotname/rack/commit/1454a2171032e2260dc7199f1077aad08fc4b59a

Needless to say that test is passing with that commit.


Thanks

- Neeraj

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

end of thread, other threads:[~2010-06-30 23:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-14 15:58 Double quotes are not preserved confirmation Neeraj Singh
2010-05-14 23:32 ` Simon Chiang
2010-05-15  1:25   ` Neeraj Singh
2010-06-06 11:16     ` Andreas S.
2010-06-11 11:21       ` Filip Tepper
2010-06-12  2:44         ` Michael Fellinger
2010-06-30 23:34           ` Jeremy Hinegardner

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).