Commit 13d53828 authored by Dries's avatar Dries

- Patch #93204 by chx et al: made Drupal work on FastCGI setups.

parent 6ae6dc0d
......@@ -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 .= '/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment