diff --git a/core/src/plugins/core.auth/class.CoreAuthLoader.php b/core/src/plugins/core.auth/class.CoreAuthLoader.php index fd66063eef..3b4dfc7e6f 100644 --- a/core/src/plugins/core.auth/class.CoreAuthLoader.php +++ b/core/src/plugins/core.auth/class.CoreAuthLoader.php @@ -36,6 +36,13 @@ class CoreAuthLoader extends AJXP_Plugin{ public function getConfigs(){ $configs = parent::getConfigs(); $configs["ALLOW_GUEST_BROWSING"] = !isSet($_SERVER["HTTP_AJXP_FORCE_LOGIN"]) && ($configs["ALLOW_GUEST_BROWSING"] === "true" || $configs["ALLOW_GUEST_BROWSING"] === true || intval($configs["ALLOW_GUEST_BROWSING"]) == 1); + // FORCE CASE INSENSITIVY FOR SQL BASED DRIVERS + if(isSet($configs["MASTER_INSTANCE_CONFIG"]) && $configs["MASTER_INSTANCE_CONFIG"]["instance_name"] == "auth.sql"){ + $configs["CASE_SENSITIVE"] = false; + } + if(isSet($configs["SLAVE_INSTANCE_CONFIG"]) && !empty($configs["SLAVE_INSTANCE_CONFIG"]) && $configs["SLAVE_INSTANCE_CONFIG"]["instance_name"] == "auth.sql"){ + $configs["CASE_SENSITIVE"] = false; + } return $configs; }