mercurial/hgweb/hgwebdir_mod.py
changeset 7107 125c8fedcbe0
parent 6945 2cfdabe235fb
child 7225 59b4ae211584
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Oct 05 21:35:26 2008 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Oct 17 11:34:31 2008 -0700
@@ -84,11 +84,11 @@
 
                 # a static file
                 if virtual.startswith('static/') or 'static' in req.form:
-                    static = os.path.join(templater.templatepath(), 'static')
                     if virtual.startswith('static/'):
                         fname = virtual[7:]
                     else:
                         fname = req.form['static'][0]
+                    static = templater.templatepath('static')
                     return staticfile(static, fname, req)
 
                 # top-level index