[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-10 Thread Phlip
Brandon Olivares wrote: Just wondering why you are taking out the _? Some commie or terr'ist somewhere has a browser that replaced peace_freedom with peaceUS95freedom. That _might_ have been caused by the accidental us-ascii encoding on the page - 95 is the ASCII code point for _ - but it

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-10 Thread Marnen Laibow-Koser
Phlip wrote: [...] An URI is an URL. Rails packs records into them like this: .../controller/action?record[first_name]=norbertrecord[last_name]=theNark I don't use GET with [] very often in Rails, but when I have done so, I have noticed that the [] are always URL-encoded as %xx (don't

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-10 Thread bbsuj
The RFC 3986, warns about these [,] characters, but leaves it up to the implementor. Firefox, IE and Safari browsers support these characters. http://tools.ietf.org/html/rfc3986 Special care should be taken when the URI path interpretation process involves the use of a back-end file system or

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Fernando Perez
The question comes up because - despite Rails's joyful abuse of those characters to delimit records ??? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
Fernando Perez wrote: The question comes up because - despite Rails's joyful abuse of those characters to delimit records ??? An URI is an URL. Rails packs records into them like this: .../controller/action?record[first_name]=norbertrecord[last_name]=theNark The params method unravels

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Philip Hallstrom
The question comes up because - despite Rails's joyful abuse of those characters to delimit records ??? An URI is an URL. Rails packs records into them like this: .../controller/action? record[first_name]=norbertrecord[last_name]=theNark The params method unravels them into

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
Philip Hallstrom wrote: Don't know for sure, but I know that in the late 90's PHP used [] for this exact same thing. Still does I would assume. So if it's browser forgiveness it's something that has been going on since at least 1996. As a shotgun attack, we upgraded our HTML headers

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
I copied it out of the top of a WikiPedia page, so it doubtless has had the crap reviewed out of it... Also, we are naturally flattening our forms to not use [] in this context. We will also take out all the _, but that might just be collateral damage.

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Brandon Olivares
Hi, Just wondering why you are taking out the _? Brandon -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails- t...@googlegroups.com] On Behalf Of Phlip Sent: Friday, April 10, 2009 12:04 AM To: rubyonrails-talk@googlegroups.com Subject: [Rails] Re: '['