mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
basename auth values for acp_board
git-svn-id: file:///svn/phpbb/trunk@8096 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7be10f7bf5
commit
5462ecdc24
1 changed files with 3 additions and 3 deletions
|
@ -407,7 +407,7 @@ class acp_board
|
||||||
{
|
{
|
||||||
if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file))
|
if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file))
|
||||||
{
|
{
|
||||||
$auth_plugins[] = preg_replace('#^auth_(.*?)\.' . $phpEx . '$#', '\1', $file);
|
$auth_plugins[] = basename(preg_replace('#^auth_(.*?)\.' . $phpEx . '$#', '\1', $file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($dp);
|
closedir($dp);
|
||||||
|
@ -459,7 +459,7 @@ class acp_board
|
||||||
|
|
||||||
if ($submit && (($cfg_array['auth_method'] != $this->new_config['auth_method']) || $updated_auth_settings))
|
if ($submit && (($cfg_array['auth_method'] != $this->new_config['auth_method']) || $updated_auth_settings))
|
||||||
{
|
{
|
||||||
$method = $cfg_array['auth_method'];
|
$method = basename($cfg_array['auth_method']);
|
||||||
if ($method && in_array($method, $auth_plugins))
|
if ($method && in_array($method, $auth_plugins))
|
||||||
{
|
{
|
||||||
include_once($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx);
|
include_once($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx);
|
||||||
|
@ -476,7 +476,7 @@ class acp_board
|
||||||
trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
|
trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_config('auth_method', $cfg_array['auth_method']);
|
set_config('auth_method', basename($cfg_array['auth_method']));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue