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

Fix filenames#115

Open
RealGreenDragon wants to merge 1 commit into
Th3-822:masterfrom
RealGreenDragon:patch-1
Open

Fix filenames#115
RealGreenDragon wants to merge 1 commit into
Th3-822:masterfrom
RealGreenDragon:patch-1

Conversation

@RealGreenDragon
Copy link
Copy Markdown

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
Copy Markdown
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