From 11647113e815e9f51e561b93788fcad52f2e4fa0 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 29 Sep 2007 16:55:05 +0200 Subject: [PATCH] Fix search shortcuts with accents Signed-off-by: Florent Bruneau --- modules/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/search.php b/modules/search.php index f301cd6..5c80760 100644 --- a/modules/search.php +++ b/modules/search.php @@ -93,7 +93,7 @@ class SearchModule extends PLModule if (S::has_perms()) { $list .= '|admin|adm|ax'; } - if (preg_match('/^(' . $list . '):([-a-z]+(\.[-a-z]+(\.\d{2,4})?)?)$/', $quick, $matches)) { + if (preg_match('/^(' . $list . '):([-a-z]+(\.[-a-z]+(\.\d{2,4})?)?)$/', replace_accent($quick), $matches)) { $forlife = $matches[2]; switch($matches[1]) { case 'admin': case 'adm': -- 2.1.4