Mercurial > hg-stable
changeset 37023:16bbb15406c9
hgweb: evaluate the "default" value as template
Strictly speaking, everything in the map file is a template. So let's not
take out an unparsed template string.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Apr 2016 14:16:47 +0900 |
parents | c97b936d8bb5 |
children | c83e2736c6de |
files | mercurial/hgweb/hgweb_mod.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Mar 16 21:39:32 2018 +0900 +++ b/mercurial/hgweb/hgweb_mod.py Sun Apr 03 14:16:47 2016 +0900 @@ -386,7 +386,7 @@ self.check_perm(rctx, req, None) if cmd == '': - req.qsparams['cmd'] = rctx.tmpl.cache['default'] + req.qsparams['cmd'] = rctx.tmpl.render('default', {}) cmd = req.qsparams['cmd'] # Don't enable caching if using a CSP nonce because then it wouldn't