security: fixed XSS in file editing.
This commit is contained in:
parent
a60f0b8b09
commit
21fb4a7124
1 changed files with 1 additions and 1 deletions
|
|
@ -1250,7 +1250,7 @@ class RepoFilesView(RepoAppView):
|
|||
default_redirect_url = h.route_path('repo_commit', repo_name=self.db_repo_name,
|
||||
commit_id=commit_id)
|
||||
if content == old_content and node_path == org_node_path:
|
||||
h.flash(_('No changes detected on {}').format(org_node_path),
|
||||
h.flash(_('No changes detected on {}').format(h.escape(org_node_path)),
|
||||
category='warning')
|
||||
raise HTTPFound(default_redirect_url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue