Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

spackmat
Copy link
Contributor

@spackmat spackmat commented Jan 4, 2023

Q A
Branch? 6.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #48859
License MIT
Doc PR none

This PR fixes the problem described in #48859 by normalizing the checked file-extension in the File Constraint to lowercase, when the extensions check is used. Previously a file with a .TXT extension was considered invalid, when the .txt extension was allowed by the Constraint. The test case was also updated.

@fabpot
Copy link
Member

fabpot commented Jan 5, 2023

Thank you @spackmat.

@fabpot fabpot merged commit 6d8974b into symfony:6.2 Jan 5, 2023
@fabpot fabpot mentioned this pull request Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants