Philip Hallstrom wrote:
>>
>> The params method unravels them into params[:record] as a  
>> convenience. But does
>> the industry in general support this use? or is it an artifact of  
>> "browser
>> forgiveness"?
> 
> 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.
> 
> 
>> And has anyone ever seen user-agents convert them to "record  
>> first_NAME " for no
>> reason?
> 
> No.

lowalpha = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" |
"i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" |
"q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" |
"y" | "z"
hialpha = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" |
"J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" |
"S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"

alpha = lowalpha | hialpha
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |
"8" | "9"
safe = "$" | "-" | "_" | "." | "+"
extra = "!" | "*" | "'" | "(" | ")" | ","
national = "{" | "}" | "|" | "\" | "^" | "~" | "[" | "]" | "`"
punctuation = "<" | ">" | "#" | "%" | <">


reserved = ";" | "/" | "?" | ":" | "@" | "&" | "="
hex = digit | "A" | "B" | "C" | "D" | "E" | "F" |
"a" | "b" | "c" | "d" | "e" | "f"
escape = "%" hex hex

Judging from the fact the "~" is legal (and used) in URLs and "[" and 
"]" are also listed under "national" I'd say that Rails use of those 
characters (unescaped) is probably just fine for most cases. Although 
they are not listed under "safe" so there might be some obscure edge 
cases that might present an issue. But, I doubt there's any reason to 
worry about it.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to