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

Added extension-guesser to fix wrong extensions on download #3720

Conversation

wachterjohannes
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #3719
Related issues/PRs none
License MIT
Documentation PR none

What's in this PR?

This PR fixes an error in download when the filename contains a wrong extension.

@wachterjohannes wachterjohannes changed the base branch from master to release/1.5 January 23, 2018 07:11
@wachterjohannes wachterjohannes force-pushed the hotfix/media-incorrect-extension branch 2 times, most recently from 2fa9c22 to 1b2b51f Compare January 23, 2018 07:20

public function testDownloadWithDotInName()
{
$filePath = $this->createMediaFile('fitness-seasons.agency--C-&-C--Rodach,-Johannes.jpg');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test case with this name but without .jpg extension.

@alexander-schranz alexander-schranz merged commit 079365e into sulu:release/1.5 Jan 30, 2018
@wachterjohannes wachterjohannes deleted the hotfix/media-incorrect-extension branch January 30, 2018 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants