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

Changeset 6802

Show
Ignore:
Timestamp:
05/21/07 23:01:17 (1 year ago)
Author:
bitsweat
Message:

Fix filtered parameter logging with nil parameter values. Closes #8422.

Files:

Legend:

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

    r6796 r6802  
    11*SVN* 
     2 
     3* Fix filtered parameter logging with nil parameter values.  #8422 [choonkeat] 
    24 
    35* Integration tests: alias xhr to xml_http_request and add a request_method argument instead of always using POST.  #7124 [Nik Wakelin, Francois Beausoleil, Wizard] 
  • trunk/actionpack/lib/action_controller/base.rb

    r6764 r6802  
    442442              filtered_parameters[key] = filter_parameters(value) 
    443443            elsif block_given? 
    444               key, value = key.dup, value.dup 
     444              key = key.dup 
     445              value = value.dup if value 
    445446              yield key, value 
    446447              filtered_parameters[key] = value 
  • trunk/actionpack/test/controller/filter_params_test.rb

    r4200 r6802  
    1717     
    1818    test_hashes = [[{},{},[]], 
     19    [{'foo'=>nil},{'foo'=>nil},[]], 
    1920    [{'foo'=>'bar'},{'foo'=>'bar'},[]], 
    2021    [{'foo'=>'bar'},{'foo'=>'bar'},%w'food'],