Skip to content

Commit

Permalink
tweak regex. match SP_checkDate now
Browse files Browse the repository at this point in the history
  • Loading branch information
weyrick committed Jun 16, 2011
1 parent bcb5758 commit b3b68a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smInVarManager.inc
Expand Up @@ -346,7 +346,7 @@ class SM_inVarManager extends SM_object {
$vOk = preg_match('/^\d{1,2}[:]\d{2}([:]\d{2})?$/',$val);
break;
case 'mysqldate':
$vOk = preg_match('/^\d{4}[-]\d{2}([-]\d{2})?$/',$val);
$vOk = preg_match('/^\d{4}-\d{2}-\d{2}$/',$val);
break;
case 'string':
$vOk = is_string($val);
Expand Down

0 comments on commit b3b68a0

Please sign in to comment.