less restrictive date check

This commit is contained in:
Roland Gruber 2006-02-12 11:03:20 +00:00
parent 70171bea52
commit a691ea4b4d
1 changed files with 1 additions and 1 deletions

View File

@ -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}$/';