fix(app): Adjusted accordingly to PR suggestions. Fixes: RCCE-37
This commit is contained in:
parent
e146c08808
commit
1d9dd471d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue