branch-permissions: protect from XSS on branch rules forbidden flash message.
This commit is contained in:
parent
479e568a61
commit
217cb4defc
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ class RepoFilesView(RepoAppView):
|
|||
self.db_repo_name, branch_name)
|
||||
if branch_perm and branch_perm not in ['branch.push', 'branch.push_force']:
|
||||
message = _('Branch `{}` changes forbidden by rule {}.').format(
|
||||
h.escape(branch_name), rule)
|
||||
h.escape(branch_name), h.escape(rule))
|
||||
h.flash(message, 'warning')
|
||||
|
||||
if json_mode:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue