Skip to content

Commit

Permalink
Fix COPS Basic Authentication
Browse files Browse the repository at this point in the history
@chadberg figured this one out, I'm just making the PR. @marioscube pointed me to the fix.  I can take no credit for this one at all.  I have applied the fix locally and it works for me.
#344
#342
  • Loading branch information
CHBMB authored and seblucas committed Apr 28, 2017
1 parent 9dabe81 commit 5f38be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$remote_user = preg_replace( '/[^a-zA-Z0-9_-]/', '', $remote_user);
$user_config_file = 'config_local.' . $remote_user . '.php';
if (file_exists(dirname(__FILE__) . '/' . $user_config_file) && (php_sapi_name() !== 'cli')) {
require_once dirname(__FILE__) . '/' . $user_config_file;
require dirname(__FILE__) . '/' . $user_config_file;
}

if(!is_null($config['cops_basic_authentication']) &&
Expand Down

0 comments on commit 5f38be7

Please sign in to comment.