#5751: Ampersand bug in $this->params['pass'] and $this->params['url'] -------------------------------+-------------------------------------------- Reporter: xbuzz | Type: Bug Status: new | Priority: High Milestone: | Component: General Version: RC3 | Severity: Normal Keywords: | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | -------------------------------+-------------------------------------------- When passing in a urlencode() string consisting of an ampersand into the URL the output of $this->params['pass'] and $this->params['url'] show incorrect results.
The problem seems to be that the $_GET['url'] value is losing the encoding. CakePHP (url encoded &): ------------------------------------ http://localhost/home/index/one/two%26three/four {{{ pr($this->params); Array ( [pass] => Array ( [0] => one [1] => two ) [named] => Array ( ) [controller] => home [action] => index [plugin] => [form] => Array ( ) [url] => Array ( [url] => home/index/one/two [three/four] => ) ) }}} PHP Script (With Encoding) http://localhost/testing.php?url=/one/two%26tree/four {{{ print_r($_GET); Array ( [url] => /one/two&tree/four ) }}} PHP Script (With No Encoding) ** Similar to CakePHP's output. http://localhost/testing.php?url=/one/two&tree/four {{{ print_r($_GET); Array ( [url] => /one/two [tree/four] => ) }}} -- Ticket URL: <https://trac.cakephp.org/ticket/5751> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---