Commits

Ethan Jucovy  committed 8f14ede

fix https://trac-hacks.org/ticket/10792 -- don't trust the search backend to only return repos that exist and are authorized to the current request

  • Participants
  • Parent commits 414cfe7

Comments (0)

Files changed (1)

File multireposearch/search.py

 
         for filename, reponame in self.search_backend.find_words(query):
             repo = self.env.get_repository(reponame=reponame, authname=req.authname)
+            if repo is None:
+                # @@TODO: log it? ask the search backend to remove the reference?
+                continue
             node = repo.get_node(filename)
 
             if node.kind == Node.DIRECTORY: