From a691ea4b4dbecd5321b09997e64698184517574f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 12 Feb 2006 11:03:20 +0000 Subject: [PATCH] less restrictive date check --- 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 3785b996..a674d581 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -513,7 +513,7 @@ function get_preg($argument, $regexp) { $pregexpr = '/^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}$/'; break; case 'date': - $pregexpr = '/^((0[1-9])|([1-2][0-9])|30|31)\\-((0[1-9])|(1[0-2]))\\-[1-3][0-9][0-9][0-9]$/'; + $pregexpr = '/^((0?[1-9])|([1-2][0-9])|30|31)\\-((0?[1-9])|(1[0-2]))\\-[1-3][0-9][0-9][0-9]$/'; break; case 'sambaLogonHours': $pregexpr = '/^[0-9a-fA-F]{42}$/';