fixed checking of logon script

This commit is contained in:
Roland Gruber 2003-09-29 12:49:48 +00:00
parent 6cf236e9bd
commit f536ed45ee
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ if ($_GET['type'] == "user") {
} }
// replace double \'s with \ // replace double \'s with \
$_POST['smb_scriptPath'] = str_replace('\\\\', '\\', $_POST['smb_scriptPath']); $_POST['smb_scriptPath'] = str_replace('\\\\', '\\', $_POST['smb_scriptPath']);
if ($_POST['smb_scriptPath'] && eregi("^[\][\]([a-z0-9])+([\][a-z0-9_\\-\\$%.]+)+$", $_POST['smb_scriptPath'])) { if ($_POST['smb_scriptPath'] && is_string($_POST['smb_scriptPath'])) {
$acct->smb_scriptPath = $_POST['smb_scriptPath']; $acct->smb_scriptPath = $_POST['smb_scriptPath'];
} }
elseif ($_POST['smb_scriptPath']) { elseif ($_POST['smb_scriptPath']) {