From 13d538287ecfe02f622a3c0cb8d283e11c321a20 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 22 Nov 2006 09:07:03 +0000 Subject: - Patch #93204 by chx et al: made Drupal work on FastCGI setups. --- 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 52274b4f1..51deb221d 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -176,7 +176,7 @@ function conf_init() { // Create base URL $base_root = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; $base_url = $base_root .= '://'. $_SERVER['HTTP_HOST']; - if ($dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\,/')) { + if ($dir = trim(dirname($_SERVER['PHP_SELF']), '\,/')) { $base_path = "/$dir"; $base_url .= $base_path; $base_path .= '/'; -- cgit v1.2.3