less restrictive date check
This commit is contained in:
parent
70171bea52
commit
a691ea4b4d
|
@ -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}$/';
|
||||
|
|
Loading…
Reference in New Issue