Fix search shortcuts with accents
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 29 Sep 2007 14:55:05 +0000 (16:55 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 29 Sep 2007 14:55:05 +0000 (16:55 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/search.php

index f301cd6..5c80760 100644 (file)
@@ -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':