From 55a49a6e51bcbdf9f4e3e3083c9fadf19e6af529 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 23 Feb 2006 08:37:37 +0000 Subject: [PATCH] allow $ at the end of \"cn\" (needed for hosts) --- 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 a674d581..f402dcac 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -464,7 +464,7 @@ function get_preg($argument, $regexp) { break; case 'realname': // Allow all but \, <, >, =, $, ? case 'cn': - $pregexpr = '/^[^\\\<>=\\$\\?]+$/'; + $pregexpr = '/^[^\\\<>=\\$\\?]+(\\$)?$/'; break; case "telephone": // Allow numbers, space, brackets, /-+. $pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';