Code

Updated date check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Mar 2010 07:30:03 +0000 (07:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Mar 2010 07:30:03 +0000 (07:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16402 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/utils/class_tests.inc

index 2073d4973680e8583168a68d7930ac1d4ec263eb..2e5eab2f7f355aaf9f4beeb842200df1309899c3 100644 (file)
@@ -285,7 +285,7 @@ class tests {
     }
 
     #TODO: use $lang to check date format
-    if (!preg_match("/([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})/", $date, $matches)) {
+    if (!preg_match("/^([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})$/", $date, $matches)) {
       return false;
     }