Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #215 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] AP parse_request_params fails on non-alphanumeric names and misplaced brackets

Reported by: bitsweat Assigned to: rails@bitsweat.net
Priority: low Milestone: 0.9
Component: ActionPack Version: 0.8
Severity: minor Keywords: parse query
Cc:

Description

parse_request_params dies on strange parameter names when it parses hashes. Additional cases handled:

  • 'a/b[c]=d' yields { 'a/b' => { 'c' => 'd' }} instead of { 'a' => 'd' }
  • 'ab[c]d=e' yields { 'ab[c]d' => 'e' } instead of { 'ab' => { 'c]' => 'e' }}

Test cases included.

Attachments

AP_parse_request_params.diff (3.5 kB) - added by bitsweat on 11/19/04 08:43:54.
AP params parse update

Change History

11/19/04 08:43:54 changed by bitsweat

  • attachment AP_parse_request_params.diff added.

AP params parse update

12/01/04 12:57:16 changed by david

  • status changed from new to closed.
  • resolution set to fixed.