added another date check

This commit is contained in:
Roland Gruber 2007-07-02 18:23:13 +00:00
parent 0ece5926f3
commit ba02c8a176
1 changed files with 3 additions and 0 deletions

View File

@ -440,6 +440,9 @@ function get_preg($argument, $regexp) {
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]$/';
break;
case 'date2':
$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}$/';
break;