From f536ed45eeaa0baa43262af168a82051981aa9b9 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 29 Sep 2003 12:49:48 +0000 Subject: [PATCH] fixed checking of logon script --- lam/templates/profedit/profilecreate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/profedit/profilecreate.php b/lam/templates/profedit/profilecreate.php index 14a34009..0aef2472 100644 --- a/lam/templates/profedit/profilecreate.php +++ b/lam/templates/profedit/profilecreate.php @@ -201,7 +201,7 @@ if ($_GET['type'] == "user") { } // replace double \'s with \ $_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']; } elseif ($_POST['smb_scriptPath']) {