ZF-10163: Zend_Controller_Action_Helper_Redirector, duplicated port number if custom port used

Issue Type: Bug Created: 2010-07-15T05:21:45.000+0000 Last Updated: 2010-10-26T05:52:31.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: BB (bb) Assignee: Marc Hodgins (mjh_ca) Tags: - Zend_Controller

Related issues: Attachments: - ZF-10163.patch


If site runs on custom port for example:

In the IndexController/indexAction: $redirector = $this->_helper->getHelper('Redirector'); $redirector->setUseAbsoluteUri()->setGotoSimple('example');

You will be redirected to:

The problem is in the: Zend/Controller/Action/Helper/Redirector.php the protected function _redirect append port number, but $_SERVER['HTTP_HOST'] contains port number too.


Posted by Marc Hodgins (mjh_ca) on 2010-10-26T01:50:16.000+0000

Patch with test attached.

Posted by Matthew Weier O'Phinney (matthew) on 2010-10-26T05:52:31.000+0000

Patch applied to trunk and 1.11 release branch -- thanks!

Have you found an issue?

See the Overview section for more details.


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

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