hgweb: escape branch names in graph view

This commit is contained in:
Matt Mackall 2013-10-07 15:21:17 -07:00
parent bcf260ff40
commit 1b8efe2652

View File

@ -913,7 +913,7 @@ def graph(web, req, tmpl):
desc = templatefilters.firstline(ctx.description())
desc = cgi.escape(templatefilters.nonempty(desc))
user = cgi.escape(templatefilters.person(ctx.user()))
branch = ctx.branch()
branch = cgi.escape(ctx.branch())
try:
branchnode = web.repo.branchtip(branch)
except error.RepoLookupError: