Show More
@@ -808,10 +808,12 b' class RepoFilesView(RepoAppView):' | |||
|
808 | 808 | safe_path = f_name.replace('"', '\\"') |
|
809 | 809 | encoded_path = urllib.parse.quote(f_name) |
|
810 | 810 | |
|
811 |
|
|
|
811 | headers = "attachment; " \ | |
|
812 | 812 | "filename=\"{}\"; " \ |
|
813 | 813 | "filename*=UTF-8\'\'{}".format(safe_path, encoded_path) |
|
814 | 814 | |
|
815 | return headers.encode().decode('iso-8859-1', errors='replace') | |
|
816 | ||
|
815 | 817 | @LoginRequired() |
|
816 | 818 | @HasRepoPermissionAnyDecorator( |
|
817 | 819 | 'repository.read', 'repository.write', 'repository.admin') |
General Comments 0
You need to be logged in to leave comments.
Login now