Skip to content

Commit

Permalink
Fix cleaning of PID when exporting ezEML data package
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-ide committed Nov 26, 2024
1 parent c7886ff commit 7f002b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,7 @@ def create_ezeml_package_manifest(user_folder, manifest_files):
package_id = eml_node.attribute_value("packageId")
if package_id and package_id != current_document:
# copy the EML file using the package_id as name
arcname = f'{sanitize_filename(package_id)}.xml'
arcname = f"{package_id.replace('/', '_')}.xml"
copyfile(f'{user_folder}/{current_document}.xml', f'{user_folder}/{arcname}')
else:
arcname = f'{current_document}.xml'
Expand Down

0 comments on commit 7f002b9

Please sign in to comment.