Weird, my $_SERVER["SERVER_NAME"] contains "[2001"... We're using lighttpd:
# lighttpd -v lighttpd/1.4.30 (ssl) - a light and fast webserver Build-Date: Mar 9 2012 13:26:25 On Fri, Mar 16, 2012 at 4:23 PM, Simon Cornelius P Umacob <[email protected]> wrote: > Houmenta! > > 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 [email protected] http://lists.agavi.org/mailman/listinfo/users
