diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-22 09:07:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-22 09:07:03 +0000 |
commit | 13d538287ecfe02f622a3c0cb8d283e11c321a20 (patch) | |
tree | 93a1e4e195393295706b11d5b5ae35f423de4d58 | |
parent | 6ae6dc0d85901a25a6fcc85efa0673a643895c11 (diff) | |
download | brdo-13d538287ecfe02f622a3c0cb8d283e11c321a20.tar.gz brdo-13d538287ecfe02f622a3c0cb8d283e11c321a20.tar.bz2 |
- Patch #93204 by chx et al: made Drupal work on FastCGI setups.
-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 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 .= '/'; |