security: fixed self-xss on archive download page.

This commit is contained in:
RhodeCode Admin 2021-11-18 15:18:21 +01:00
parent 2c268b6026
commit 6661b23cd5

View file

@ -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 = ''