mirror of
https://github.com/nzbgetcom/nzbget.git
synced 2026-03-02 22:57:10 -05:00
Incorrectly processing the filename from the content-disposition header #301
Labels
No labels
bug
documentation
enhancement
extension
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nzbget#301
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @heymoe on GitHub (Feb 13, 2026).
Originally assigned to: @dnzbk on GitHub.
Is there already an issue for your problem?
NZBGet Version
v26.0-stable
Platform
Linux/Docker
Environment
Current Behavior
NZB files downloaded from a Spottarr instance gets named incorrectly in NZBGet's queue. It seems that most sources of NZB files set their content-disposition to something like:
content-disposition: attachment; filename="My Filename.nzb"Which gets added to NZBGet's queue as: "My Filename"
Spottarr seems to be adding a UTF-8 encoded filename along with a compatibility filename in its context-disposition header like so:
content-disposition: attachment; filename=1313961.nzb; filename*=UTF-8''1313961.nzbWhich gets added to NZBGet's queue as: "1313961.nzb; filename*=UTF-8''1313961"
This was originally reported in Spottarr's repo (https://github.com/Spottarr/Spottarr/issues/123) but it looks like the OG reporter didn't follow up over here.
Expected Behavior
Correctly parse the filename from the context-disposition when multiple filenames / UTF-8 filename is provided. So if the content-disposition is:
content-disposition: attachment; filename=1313961.nzb; filename*=UTF-8''1313961.nzbNZBGet would add it as: "1313961" to its queue.
Steps To Reproduce
NZBGet will fetch the NZB file via the URL and it will get added as : 1 nzb; filename =UTF-8''1
Logs
None at this time
Extra information
No response