Development

Changeset 9957

You must first sign up to be able to contribute.

Changeset 9957

Show
Ignore:
Timestamp:
06/28/08 09:23:15 (2 months ago)
Author:
fabien
Message:

fixed convertUrlStringToParameters breaks urlencoded parameter (closes #3788)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/controller/sfWebController.class.php

    r7791 r9957  
    188188      foreach ($matches as $match) 
    189189      { 
    190         $params[$match[1][0]] = $match[2][0]
     190        $params[urldecode($match[1][0])] = urldecode($match[2][0])
    191191      } 
    192192 
  • branches/1.0/test/unit/controller/sfWebControllerTest.php

    r3487 r9957  
    1212require_once($_test_dir.'/unit/sfContextMock.class.php'); 
    1313 
    14 $t = new lime_test(17, new lime_output_color()); 
     14$t = new lime_test(18, new lime_output_color()); 
    1515 
    1616sfConfig::set('sf_max_forwards', 10); 
     
    125125    ), 
    126126  ), 
     127  '@test?id=foo%26bar&foo=bar%3Dfoo' => array( 
     128    'test', 
     129    array( 
     130      'id' => 'foo&bar', 
     131      'foo' => 'bar=foo', 
     132    ), 
     133  ), 
    127134); 
    128135