Skip to content
Snippets Groups Projects
Unverified Commit de3383c6 authored by Michael Große's avatar Michael Große
Browse files

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
parent 3eb2b869
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment