From 00330ec73903512ee20419b7387ddb2112db5b46 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Mar 2010 07:30:03 +0000 Subject: [PATCH] Updated date check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16402 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/utils/class_tests.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2