From 2b3126b2ccfc51c44ede6f0675626d83527c1778 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 19 Sep 2005 19:13:35 +0000 Subject: Patch #19934 by Morbus, chx: conf_init() should strip out port numbers in bootstrap.inc. --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index d9754a0fc..d597a0530 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -115,7 +115,7 @@ function conf_init() { $confdir = 'sites'; $uri = explode('/', $_SERVER['PHP_SELF']); - $server = explode('.', rtrim($_SERVER['HTTP_HOST'], '.')); + $server = explode('.', str_replace(':', '.', rtrim($_SERVER['HTTP_HOST'], '.'))); for ($i = count($uri) - 1; $i > 0; $i--) { for ($j = count($server); $j > 0; $j--) { $dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i)); -- cgit v1.2.3