diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2021-11-25 07:24:44 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2021-11-25 07:24:44 +0000 |
commit | fa9762126427bb1c13b846aef08d898691329633 (patch) | |
tree | 81610b220a61330dede2448025e435317632bd57 /scripts/pagelist.php | |
parent | 0a3ca27102a8e90d0851620e8b5d523a7eb234b9 (diff) | |
download | pmwiki.svn-fa9762126427bb1c13b846aef08d898691329633.tar.bz2 |
Pagelist searches with wrong $SearchPatterns will now use $SearchPatterns["default"] rather than empty array (effectively all pages). This is to allow admins to limit search lists.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3788 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/pagelist.php')
-rw-r--r-- | scripts/pagelist.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/pagelist.php b/scripts/pagelist.php index 8fd2880d..84733ddc 100644 --- a/scripts/pagelist.php +++ b/scripts/pagelist.php @@ -326,6 +326,7 @@ function PageListSources(&$list, &$opt, $pn, &$page) { global $SearchPatterns; StopWatch('PageListSources begin'); + if (!isset($SearchPatterns[$opt['list']])) $opt['list'] = 'default'; if ($opt['list'] == 'grouphomes') EnablePageListGroupHomes(); ## add the list= option to our list of pagename filter patterns $opt['=pnfilter'] = array_merge((array)@$opt['=pnfilter'], |