Skip to content
Snippets Groups Projects
Commit 3f4be0d6 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#60846, fix Drupal for running as CGI, patch by chx

parent 4f7ba52b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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--) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment