From 6892cd13d79386b01aeaf92d0958620dd554452c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 23 Feb 2006 08:49:42 +0000 Subject: [PATCH] allow $ in logon script --- lam/lib/account.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index f402dcac..0aaf4cd2 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -492,7 +492,7 @@ function get_preg($argument, $regexp) { $pregexpr = '/^((([\\\][\\\])|(%))([a-zA-Z0-9%\\.-])+)([\\\]([[:alnum:]%\\.\\$\\ \\_-])+)+$/u'; break; case "logonscript": // path to login-script. normal unix file - $pregexpr = '/^(([\/])*([[:alnum:]%\\.\\ \\_-])+([\/]([[:alnum:]%\\.\\ \\_-])+)*((\\.bat)|(\\.cmd)|(\\.exe)))*$/u'; + $pregexpr = '/^(([\/])*([[:alnum:]%\\.\\ \\$\\_-])+([\/]([[:alnum:]%\\.\\ \\$\\_-])+)*((\\.bat)|(\\.cmd)|(\\.exe)))*$/u'; break; case "workstations": // comma separated list with windows-hosts $pregexpr = '/^(([a-zA-Z0-9\\.\\_-])+(,[a-zA-Z0-9\\.\\_-])*)*$/';