From cf5cf754034b6982f6b8f6325c32ff27280bfad0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 21 Mar 2011 19:09:11 +0100 Subject: [PATCH] Removes call to deprecated ereg. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/platal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/platal.php b/modules/platal.php index 1fa6352..11b6b85 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -276,7 +276,7 @@ class PlatalModule extends PLModule return; } - if (!ereg('[0-3][0-9][0-1][0-9][1][9]([0-9]{2})', Env::v('birth'))) { + if (!preg_match('/^[0-3][0-9][0-1][0-9][1][9]([0-9]{2})$/', Env::v('birth'))) { $page->trigError('Date de naissance incorrecte ou incohérente'); return; } -- 2.1.4