From 3f4be0d6937ef60a4f45dfe7c5e1c03b6e4ad2ee Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> Date: Fri, 28 Apr 2006 11:52:31 +0000 Subject: [PATCH] #60846, fix Drupal for running as CGI, patch by chx --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 110d496c4a7c..1353daa77ed2 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--) { -- GitLab