Show More
@@ -262,12 +262,14 b' class RepoFilesView(RepoAppView):' | |||
|
262 | 262 | commit_id, ext, fileformat, content_type = \ |
|
263 | 263 | self._get_archive_spec(fname) |
|
264 | 264 | except ValueError: |
|
265 |
return Response(_('Unknown archive type for: `{}`').format( |
|
|
265 | return Response(_('Unknown archive type for: `{}`').format( | |
|
266 | h.escape(fname))) | |
|
266 | 267 | |
|
267 | 268 | try: |
|
268 | 269 | commit = self.rhodecode_vcs_repo.get_commit(commit_id) |
|
269 | 270 | except CommitDoesNotExistError: |
|
270 |
return Response(_('Unknown commit_id |
|
|
271 | return Response(_('Unknown commit_id {}').format( | |
|
272 | h.escape(commit_id))) | |
|
271 | 273 | except EmptyRepositoryError: |
|
272 | 274 | return Response(_('Empty repository')) |
|
273 | 275 | |
@@ -657,7 +659,7 b' class RepoFilesView(RepoAppView):' | |||
|
657 | 659 | try: |
|
658 | 660 | dir_node = commit.get_node(f_path) |
|
659 | 661 | except RepositoryError as e: |
|
660 | return Response('error: {}'.format(safe_str(e))) | |
|
662 | return Response('error: {}'.format(h.escape(safe_str(e)))) | |
|
661 | 663 | |
|
662 | 664 | if dir_node.is_file(): |
|
663 | 665 | return Response('') |
General Comments 0
You need to be logged in to leave comments.
Login now