From b42bcfe76a8bf94574aebbbe4f9cf31d37b65553 Mon Sep 17 00:00:00 2001 From: "daniel.lindgren" Date: Wed, 11 Mar 2009 17:02:55 +0100 Subject: Search function update Ignore-this: 4cd6bddacb795ef15f133559c223ac1f * Adds the possibility to exclude namespace(s) from search, by preceding them with "^". * Changed handling of search parameters to allow any order of words and namespaces. darcs-hash:20090311160255-13810-c2e00cc7764d180967b4c6f22e17b1c0dafe36f4.gz --- inc/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 114bdad9d..b1e755cd3 100644 --- a/inc/html.php +++ b/inc/html.php @@ -302,7 +302,7 @@ function html_search(){ flush(); //check if search is restricted to namespace - if(preg_match('/([^@]*)@([^@]*)/',$QUERY,$match)) { + if(preg_match('/@([^@]*)/',$QUERY,$match)) { $id = cleanID($match[1]); if(empty($id)) { print '
'.$lang['nothingfound'].'
'; -- cgit v1.2.3