From 25a30c53c6a283a8a14a09ac64e5b8abd628043a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 8 May 2004 22:42:38 +0000 Subject: [PATCH] fix for mbstring.overload=7, ereg('.*(x|y|z).*') never ends, preg_match('/(x|y|z)') works without problem :-) --- infolog/inc/class.soinfolog.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.soinfolog.inc.php b/infolog/inc/class.soinfolog.inc.php index 6f94c07579..e8611c2d61 100644 --- a/infolog/inc/class.soinfolog.inc.php +++ b/infolog/inc/class.soinfolog.inc.php @@ -93,7 +93,7 @@ */ function aclFilter($filter = False) { - ereg('.*(own|privat|all|none|user)([0-9]*).*',$filter_was=$filter,$vars); + preg_match('/(own|privat|all|none|user)([0-9]*)/',$filter_was=$filter,$vars); $filter = $vars[1]; $f_user = intval($vars[2]); @@ -161,7 +161,7 @@ */ function statusFilter($filter = '') { - ereg('.*(done|open|offer).*',$filter,$vars); + preg_match('/(done|open|offer)/',$filter,$vars); $filter = $vars[1]; switch ($filter) @@ -185,7 +185,7 @@ */ function dateFilter($filter = '') { - ereg('.*(upcoming|today|overdue|date)([-/.0-9]*).*',$filter,$vars); + preg_match('/(upcoming|today|overdue|date)([-\\/.0-9]*)/',$filter,$vars); $filter = $vars[1]; if (isset($vars[2]) && !empty($vars[2]) && ($date = split('[-/.]',$vars[2])))