fix(app): Adjusted accordingly to PR suggestions. Fixes: RCCE-37

This commit is contained in:
Serhii Ilin 2024-01-29 08:56:50 +02:00
parent e146c08808
commit 1d9dd471d3

View file

@ -812,7 +812,7 @@ class RepoFilesView(RepoAppView):
"filename=\"{}\"; " \
"filename*=UTF-8\'\'{}".format(safe_path, encoded_path)
return headers.encode().decode('iso-8859-1', errors='replace')
return safe_bytes(headers).decode('latin-1', errors='replace')
@LoginRequired()
@HasRepoPermissionAnyDecorator(