From de3383c6b8b9c277752ea85bf7429ebafad3d6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= <grosse@cosmocode.de> Date: Fri, 23 Mar 2018 13:05:35 +0100 Subject: [PATCH] fix(search): namespace limits must match exactly This fixes a bug that during a search limited to `@de` would show pages form the namespace `devel` as well (in the fullpage results). Fixes #2285 --- inc/fulltext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/fulltext.php b/inc/fulltext.php index 18e4d83b6..b47999a51 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -100,7 +100,7 @@ function _ft_pageSearch(&$data) { break; case 'N+:': case 'N-:': // namespace - $ns = substr($token, 3); + $ns = cleanID(substr($token, 3)) . ':'; $pages_matched = array(); foreach (array_keys($pages_all) as $id) { if (strpos($id, $ns) === 0) { -- GitLab