aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-09-22 13:33:05 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-09-22 13:33:05 +0000
commit5462ecdc246a67e40938b8ee2cea82c49ca13b02 (patch)
treef6da59e49dcc01acdfcb33bf777b1ec5cee6ec92 /phpBB/includes
parent7be10f7bf532d6b137f86a7b73d00922ab099687 (diff)
downloadforums-5462ecdc246a67e40938b8ee2cea82c49ca13b02.tar
forums-5462ecdc246a67e40938b8ee2cea82c49ca13b02.tar.gz
forums-5462ecdc246a67e40938b8ee2cea82c49ca13b02.tar.bz2
forums-5462ecdc246a67e40938b8ee2cea82c49ca13b02.tar.xz
forums-5462ecdc246a67e40938b8ee2cea82c49ca13b02.zip
basename auth values for acp_board
git-svn-id: file:///svn/phpbb/trunk@8096 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_board.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 463087e106..5bcbae82ba 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -407,7 +407,7 @@ class acp_board
{
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);
@@ -459,7 +459,7 @@ class acp_board
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))
{
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);
}
}
- set_config('auth_method', $cfg_array['auth_method']);
+ set_config('auth_method', basename($cfg_array['auth_method']));
}
else
{