mercurial/hgweb/hgwebdir_mod.py
changeset 4709 53eca35c3aeb
parent 4462 12e4d9524951
child 4841 9b0ebb5e0f94
child 5063 142a07e758c8
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Jun 25 14:46:20 2007 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Mon Jun 25 14:46:20 2007 +0200
@@ -142,6 +142,9 @@
                 def get(section, name, default=None):
                     return u.config(section, name, default, untrusted=True)
 
+                if u.configbool("web", "hidden", untrusted=True):
+                    continue
+
                 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
                        .replace("//", "/")) + '/'