I'm testing our web app with IPv6 right now, and I seem to have some
problems with $this->getResponse()->setRedirect(). Upon closer
inspection, it looks like the problem is in
AgaviWebRequest::initialize():
$SERVER_NAME = self::getSourceValue($sources['SERVER_NAME'],
$sourceDefaults['SERVER_NAME']);
$port = $this->getUrlPort();
if(preg_match_all('/\:/', $SERVER_NAME, $m) > 1) {
$this->urlHost = preg_replace('/\]\:' . preg_quote($port,
'/') . '$/', '', $SERVER_NAME);
} else {
$this->urlHost = preg_replace('/\:' . preg_quote($port,
'/') . '$/', '', $SERVER_NAME);
}
var_dump($this->urlHost);
Output:
string(16) "https://[2001:0/"
Cheers,
[ simon.cpu ]
_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users
# lighttpd -v
lighttpd/1.4.30 (ssl) - a light and fast webserver
Build-Date: Mar 9 2012 13:26:25
http://redmine.lighttpd.net/issues/2333
On Fri, Mar 16, 2012 at 4:27 PM, Simon Cornelius P Umacob