Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Fix filenames #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix filenames #115

wants to merge 1 commit into from

Conversation

RealGreenDragon
Copy link

Seems that filenames are URL-encoded twice (often only some characters, such as parenthesis), so web browsers cannot recognize filenames.
This happens when the method 'RedirectDownload()' receive an URL-encoded $FileName.
To fix simply URL-decode also the $FileName value.

Seems that filenames are URL-encoded twice (often only some characters, such as parenthesis), so web browsers cannot recognize filenames.
This happens when the method 'RedirectDownload()' receive an URL-encoded $FileName.
To fix simply URL-decode also the $FileName value.
@RealGreenDragon RealGreenDragon changed the title Fix downloaded filenames Fix filenames Apr 17, 2018
@Th3-822
Copy link
Owner

Th3-822 commented Apr 28, 2018

Redirect download expects the filename (non urlencoded) as it's arguments (iirc i had removed it after noticing the double decoding downloading a file with % on it), if it's urlencoded then it would be a plugin issue (checking if the filename wasn't urldecoded from the link, etc.) or host issue (on it's C-D headers), that can be fixed using force_name on the plugin, or using CheckBack and "fixing" the header manually

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants