diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-19 01:24:18 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-19 01:24:18 +0000 |
commit | f60da5b071fe6af217a3eb8e63efac30632656ed (patch) | |
tree | 68af6616b0cf8378400826f06e08b765337cd70a | |
parent | 0805a476b32d3e24329eff60f09295a2980a4c0f (diff) | |
download | brdo-f60da5b071fe6af217a3eb8e63efac30632656ed.tar.gz brdo-f60da5b071fe6af217a3eb8e63efac30632656ed.tar.bz2 |
- #19130: Handle trailing dot in hostname when scanning for config.
-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 911632f20..509779049 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -50,7 +50,7 @@ function conf_init() { $confdir = 'sites'; $uri = explode('/', $_SERVER['PHP_SELF']); - $server = explode('.', $_SERVER['HTTP_HOST']); + $server = 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)); |