Trim slug in zip name

This commit is contained in:
shamoon 2025-11-05 13:35:59 -08:00
parent f07b5c2556
commit b3ea3f96d6
No known key found for this signature in database

View File

@ -2810,7 +2810,8 @@ class SharedLinkView(View):
)
response = FileResponse(file_path.open("rb"), content_type="application/zip")
download_name = f"paperless-share-{share_bundle.slug}.zip"
short_slug = share_bundle.slug[:12]
download_name = f"paperless-share-{short_slug}.zip"
filename_normalized = (
normalize("NFKD", download_name)
.encode(