From 856f2ebcd80a925923c321a178b6e66bfe56b60d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 28 Apr 2006 08:44:26 +0000 Subject: [PATCH] allow \"@\" in passwords (1477878) --- lam/lib/account.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 6280ac13..3abdece3 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -40,6 +40,7 @@ include_once("createntlm.inc"); * @return array list of shell names */ function getshells() { + if (!isset($_SESSION['lampath'])) return array(); // Load shells from file if (file_exists($_SESSION['lampath'] . 'config/shells')) { $shells = file($_SESSION['lampath'] . 'config/shells'); @@ -449,7 +450,7 @@ function get_preg($argument, $regexp) { $pregexpr = ''; switch ($regexp) { case 'password': - $pregexpr = '/^([[:alnum:]\\^\\ \\|\\#\\*\\,\\.\\;\\:\\_\\+\\!\\%\\&\\/\\?\\{\\(\\)\\}\\[\\]=-])*$/u'; + $pregexpr = '/^([[:alnum:]\\^\\ \\|\\#\\*\\,\\.\\;\\:\\_\\+\\!\\%\\&\\/\\?\\{\\(\\)\\}\\[\\]\\$@=-])*$/u'; break; case 'groupname': // first character must be a letter. All letters, numbers, space and ._- are allowed characters case 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters