Skip to content

Commit

Permalink
Item2217: fix recursive search
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@5223 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Oct 7, 2009
1 parent 7955f26 commit f207dd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Search.pm
Expand Up @@ -18,6 +18,7 @@ use Foswiki::Sandbox ();
use Foswiki::Search::InfoCache ();
use Foswiki::ListIterator ();
use Foswiki::Iterator::FilterIterator ();
use Foswiki::WebFilter ();

#TODO: move these into a more appropriate place - they are function objects so can persist for a _long_ time
my $queryParser;
Expand Down Expand Up @@ -204,7 +205,7 @@ sub _getListOfWebs {
}
my $it = $webObject->eachWeb(1);
while ( $it->hasNext() ) {
my $w = $it->next();
my $w = $web.'/'.$it->next();
next
unless $Foswiki::WebFilter::user_allowed->ok(
$session, $w );
Expand All @@ -227,7 +228,7 @@ sub _getListOfWebs {
my $it =
$webObject->eachWeb( $Foswiki::cfg{EnableHierarchicalWebs} );
while ( $it->hasNext() ) {
my $w = $it->next();
my $w = $session->{webName}.'/'.$it->next();
next
unless $Foswiki::WebFilter::user_allowed->ok( $session, $w );
push( @tmpWebs, $w );
Expand Down

0 comments on commit f207dd2

Please sign in to comment.