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

Reply via email to