From: Florent Bruneau Date: Sat, 29 Sep 2007 14:55:05 +0000 (+0200) Subject: Fix search shortcuts with accents X-Git-Tag: xorg/0.9.15~96 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=11647113e815e9f51e561b93788fcad52f2e4fa0;p=platal.git Fix search shortcuts with accents Signed-off-by: Florent Bruneau --- 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':