Skip to content

Commit 98b4b3e

Browse files
committed
Multi domain conf directory bug
1 parent 6e16e6a commit 98b4b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conf/config.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@
522522
$extraConfigKey = "HTTP_".strtoupper(str_replace('-','_',$header_name_extra_config));
523523
if (array_key_exists($extraConfigKey, $_SERVER)) {
524524
$extraConfig = preg_replace("/[^a-zA-Z0-9-_]+/", "", filter_var($_SERVER[$extraConfigKey], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH));
525-
if (strlen($extraConfig) > 0 && file_exists (__DIR__ . "/config.inc.".$extraConfig.".php")) {
526-
require_once __DIR__ . "/config.inc.".$extraConfig.".php";
525+
if (strlen($extraConfig) > 0 && file_exists (__DIR__ . "/conf/config.inc.".$extraConfig.".php")) {
526+
require_once __DIR__ . "/conf/config.inc.".$extraConfig.".php";
527527
}
528528
}
529529
}

0 commit comments

Comments
 (0)