diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-11-21 16:24:41 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-11-21 16:24:41 +0000 |
commit | cbc92f59cffeabac208d607418c066ce47e99786 (patch) | |
tree | 8402b38ca7b6092e51b3c3a594bc96d00b83484c /includes | |
parent | 463ffe24ece31fd094ca30ce8b8b485ee32161cf (diff) | |
download | brdo-cbc92f59cffeabac208d607418c066ce47e99786.tar.gz brdo-cbc92f59cffeabac208d607418c066ce47e99786.tar.bz2 |
#35725: Make site.com:80 work like site.com
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 5f72665cd..6096ac6b2 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('.', str_replace(':', '.', rtrim($_SERVER['HTTP_HOST'], '.'))); + $server = explode('.', implode('.', array_reverse(explode(':', 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)); |