ZF-10787: urlencoded parameters - %2F is being treated as a /

Issue Type: Bug Created: 2010-12-06T08:58:09.000+0000 Last Updated: 2011-05-04T18:05:43.000+0000 Status: Resolved Fix version(s): - 1.11.6 (05/May/11)

Reporter: Jonathan Dunn (jmd) Assignee: Ralph Schindler (ralph) Tags: - Zend_Controller

Related issues: - ZF-3527



I am redirecting to a log in form like so:

$this->_helper->redirector('login', 'auth', null, array('redirect' => $this->getRequest()->getRequestUri()));

Results in:…

This seems to work fine in 1.10.8 but in the latest version (1.11.1) %2F is being treated as a /:

Ver 1.10.8 array(9) { ["module"]=> string(5) "admin" ["controller"]=> string(4) "auth" ["action"]=> string(5) "login" ["redirect"]=> string(120) "/admin/viewer/show/dateFrom/2010-12-13/dateTo/2011-01-03/highlight/2010-12-20/show/1/mode/occupancy-diary/memberId/50000" ["username"]=> string(12) "jonathan" ["password"]=> string(9) "mypassword" ["code1"]=> string(1) "5" ["code2"]=> string(1) "5" ["submit"]=> string(5) "Login" }

Ver 1.11.1 array(16) { ["module"]=> string(5) "admin" ["controller"]=> string(4) "auth" ["action"]=> string(5) "login" ["redirect"]=> string(0) "" ["admin"]=> string(6) "viewer" ["show"]=> string(8) "dateFrom" ["2010-12-13"]=> string(6) "dateTo" ["2011-01-03"]=> string(9) "highlight" ["2010-12-20"]=> string(4) "show" [1]=> string(4) "mode" ["occupancy-diary"]=> string(8) "memberId" ["username"]=> string(12) "jonathan" ["password"]=> string(9) "mypassword" ["code1"]=> string(1) "5" ["code2"]=> string(1) "5" ["submit"]=> string(5) "Login" }



Posted by Ramon Henrique Ornelas (ramon) on 2010-12-06T10:03:18.000+0000

I did not perform a battery of tests but believe that be after change ZF-3527.

Posted by Artiom Lunev (_artiom) on 2010-12-06T21:49:01.000+0000

I added a test case in comments for ZF-3527.

Posted by Ralph Schindler (ralph) on 2011-05-04T17:03:23.000+0000

Potential fix in trunk at r24002 - asking for watchers to test now.

Posted by Ralph Schindler (ralph) on 2011-05-04T18:05:43.000+0000

Fixed in trunk at r24002 Fixed in release branch 1.11 at r24003

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.