Skip to content

Commit

Permalink
Merge branch 'hotfix/23.09.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mfraezz committed Jul 28, 2023
2 parents cd36993 + cf5b17a commit 0930d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osf_tests/test_archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def test_archive_success(self):
def test_archive_success_escaped_file_names(self):
file_tree = file_tree_factory(0, 0, 0)
fake_file = file_factory(name='>and&and<')
fake_file_name = strip_html(fake_file['name'])
fake_file_name = strip_html(fake_file['name']).replace('&amp;', '&')
file_tree['children'] = [fake_file]

node = factories.NodeFactory(creator=self.user)
Expand Down
2 changes: 1 addition & 1 deletion website/archiver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _make_file_response(file_info, parent_guid):
archived_file_id = file_info['path'].lstrip('/')
return {
'file_id': archived_file_id,
'file_name': bleach.clean(file_info['name']),
'file_name': bleach.clean(file_info['name']).replace('&amp;', '&'),
'file_urls': {
'html':
FILE_HTML_LINK_TEMPLATE.format(
Expand Down

0 comments on commit 0930d74

Please sign in to comment.