Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix #239 by forcing case insensitivy for sql-based drivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 18, 2013
1 parent ed2e764 commit 19df26c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/plugins/core.auth/class.CoreAuthLoader.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit 19df26c

Please sign in to comment.