#499: AgaviWebResponse::setRedirect() strips non-standard port when redirecting
to a generated route
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: response | Version: 0.11.0RC4
Severity: normal | Keywords:
-----------------------------------+----------------------------------------
Following code in a view breaks when virtual host is run on non-standard
port:
class Default_LoginSuccessView extends ProjectBaseView
{
public function executeHtml(AgaviRequestDataHolder $rd)
{
$this->getContainer()->getResponse()->setRedirect(
$this->getContext()->getRouting()->gen('index'));
}
}
Previous versions of Agavi (svn-1486) resulted in a "Location: /" header
being sent, and the browser automatically appended the correct port.
Current svn (1870) results in "Location: https://myhost.com/", which
breaks if the virtual hosts is being run on eg port 9443.
--
Ticket URL: <http://trac.agavi.org/ticket/499>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets