From: hickert Date: Thu, 11 Mar 2010 07:30:03 +0000 (+0000) Subject: Updated date check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=00330ec73903512ee20419b7387ddb2112db5b46;p=gosa.git Updated date check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16402 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_tests.inc b/gosa-core/include/utils/class_tests.inc index 2073d4973..2e5eab2f7 100644 --- a/gosa-core/include/utils/class_tests.inc +++ b/gosa-core/include/utils/class_tests.inc @@ -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; }