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

Changeset 4522

Show
Ignore:
Timestamp:
06/30/06 05:19:15 (2 years ago)
Author:
david
Message:

Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4518 r4522  
    11*SVN* 
     2 
     3* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH] 
    24 
    35* Add route_name_path method to generate only the path for a named routes. For example, map.person will add person_path. [Nicholas Seckar] 
  • trunk/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb

    r4499 r4522  
    3737          @multipart = true 
    3838          @params = read_multipart(boundary, content_length) 
    39         elsif content_type.blank? || content_type.downcase != 'application/x-www-form-urlencoded' 
     39        elsif content_type.blank? || content_type.downcase !~ %r{^application/x-www-form-urlencoded.*} 
    4040          read_params(method, content_length) 
    4141          @params = {}