From a6b28f270aea381f580affe2eaa9b9c286cc001a Mon Sep 17 00:00:00 2001 From: rurban Date: Thu, 11 Nov 2010 14:45:18 +0000 Subject: [PATCH] fix wrong explodePageList logic with *,*: union not intersection git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7740 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/PageList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PageList.php b/lib/PageList.php index caf06646a..57f144c76 100644 --- a/lib/PageList.php +++ b/lib/PageList.php @@ -1040,7 +1040,7 @@ class PageList { // expand wildcards from list of all pages if (preg_match('/[\?\*]/', $input) or substr($input,0,1) == "^") { include_once("lib/TextSearchQuery.php"); - $search = new TextSearchQuery(str_replace(",", " ", $input), true, + $search = new TextSearchQuery(str_replace(",", " or ", $input), true, (substr($input,0,1) == "^") ? 'posix' : 'glob'); $dbi = $GLOBALS['request']->getDbh(); $iter = $dbi->titleSearch($search, $sortby, $limit, $exclude); -- 2.45.0