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

Commit

Permalink
Make sure to search include path before requiring Yubico.php
Browse files Browse the repository at this point in the history
Exclude radius from php_hhvm
  • Loading branch information
cdujeu committed Jan 11, 2014
1 parent 3745ec0 commit 8e3d446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .scrutinizer.yml
Expand Up @@ -69,6 +69,7 @@ tools:
- 'core/src/plugins/core.mq/vendor/*'
- 'core/src/plugins/editor.diaporama/PThumb.lib.php'
- 'core/src/plugins/meta.svn/svn_lib.inc.php'
- 'core/src/plugins/auth.radius/class.radiusAuthDriver.php'
config:
bad_php_include_file: true
php_include_file_not_found: true
Expand Down
Expand Up @@ -35,7 +35,9 @@ class serial_otpAuthDriver extends AbstractAuthDriver
public function init($options)
{
parent::init($options);
require_once 'Auth/Yubico.php';
if(AJXP_Utils::searchIncludePath('Auth/Yubico.php')){
require_once 'Auth/Yubico.php';
}
$this->usersSerFile = AJXP_VarsFilter::filter($this->getOption("USERS_FILEPATH"));
$this->yubico_secret_key = AJXP_VarsFilter::filter($this->getOption("YUBICO_SECRET_KEY"));
$this->yubico_client_id = AJXP_VarsFilter::filter($this->getOption("YUBICO_CLIENT_ID"));
Expand Down

0 comments on commit 8e3d446

Please sign in to comment.