security: fixed self-xss on archive download page.
This commit is contained in:
parent
2c268b6026
commit
6661b23cd5
1 changed files with 1 additions and 1 deletions
|
|
@ -381,7 +381,7 @@ class RepoFilesView(RepoAppView):
|
|||
try:
|
||||
at_path = commit.get_node(at_path).path or default_at_path
|
||||
except Exception:
|
||||
return Response(_('No node at path {} for this repository').format(at_path))
|
||||
return Response(_('No node at path {} for this repository').format(h.escape(at_path)))
|
||||
|
||||
# path sha is part of subdir
|
||||
path_sha = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue