Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.2] Remove % From filenameFallback In Response::download #6097

Merged
merged 1 commit into from
Dec 17, 2014
Merged

[4.2] Remove % From filenameFallback In Response::download #6097

merged 1 commit into from
Dec 17, 2014

Conversation

barryvdh
Copy link
Contributor

The filename fallback is turned to ASCII, because only ASCII is allowed. But there are 2 more checks:

  • check for % in the fallback
  • check for slashes in the filename and the fallback.

(See https://github.com/symfony/symfony/blob/v2.5.5/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php#L264-L277)

I think we can skip the slashes, because they are also checked in the filename itself. But we should probably remove the % sign. Downloads work when files have a % in them, just the fallback doesn't.

I propose removing the % from the fallback.

@GrahamCampbell GrahamCampbell changed the title Remove % from filenameFallback in Response::download [4.2] Remove % From filenameFallback In Response::download Oct 15, 2014
@GrahamCampbell
Copy link
Member

👍

taylorotwell added a commit that referenced this pull request Dec 17, 2014
[4.2] Remove % From filenameFallback In Response::download
@taylorotwell taylorotwell merged commit e7e95c3 into laravel:4.2 Dec 17, 2014
@barryvdh barryvdh deleted the patch-4 branch December 17, 2014 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants