From 3f4be0d6937ef60a4f45dfe7c5e1c03b6e4ad2ee Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Fri, 28 Apr 2006 11:52:31 +0000 Subject: #60846, fix Drupal for running as CGI, patch by chx --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/bootstrap.inc') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 110d496c4..1353daa77 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -116,7 +116,7 @@ function conf_path() { } $confdir = 'sites'; - $uri = explode('/', $_SERVER['PHP_SELF']); + $uri = explode('/', $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME']); $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--) { -- cgit v1.2.3