Changeset 6614
- Timestamp:
- 12/20/07 15:51:15 (10 months ago)
- Files:
-
- branches/1.0/lib/controller/sfRouting.class.php (modified) (1 diff)
- branches/1.0/test/unit/controller/sfRoutingTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0/lib/controller/sfRouting.class.php
r6125 r6614 581 581 $found .= $pass[$i].'='.$pass[$i + 1].'&'; 582 582 } 583 583 584 parse_str($found, $pass); 585 586 if (get_magic_quotes_gpc()) 587 { 588 $pass = sfToolkit::stripslashesDeep((array) $pass); 589 } 590 584 591 foreach ($pass as $key => $value) 585 592 { branches/1.0/test/unit/controller/sfRoutingTest.php
r6125 r6614 207 207 $t->is($r->generate('', $params), $url, '->generate() takes the first matching route but takes * into accounts'); 208 208 209 $t->is($r->parse('/default/index/foo/bar\'123'), array('module' => 'default', 'action' => 'index', 'foo' => 'bar\'123'), '->parse() handles quotes'); 210 211 209 212 // * in the middle 210 213 $r->clearRoutes();