Open FrittenKeeZ opened 3 years ago
Describe the bug Given the extension rule ext:jpg,png you're allowed to select example.apng but not example.PNG.
ext:jpg,png
example.apng
example.PNG
To Reproduce Steps to reproduce the behavior:
validate: 'ext:jpg,png'
Expected behavior Regardless of capitalization of extension a file should be allow - and files not matching extension including dot ( .) shouldn't.
.
Screenshots If applicable, add screenshots to help explain your problem.
Environment details (please complete the following information):
Additional context It's a matter of correcting statamic/core/Providers/ValidationServiceProvider.php:97.
statamic/core/Providers/ValidationServiceProvider.php:97
Describe the bug Given the extension rule
ext:jpg,png
you're allowed to selectexample.apng
but notexample.PNG
.To Reproduce Steps to reproduce the behavior:
validate: 'ext:jpg,png'
example.PNG
file with capital extensionExpected behavior Regardless of capitalization of extension a file should be allow - and files not matching extension including dot (
.
) shouldn't.Screenshots If applicable, add screenshots to help explain your problem.
Environment details (please complete the following information):
Additional context It's a matter of correcting
statamic/core/Providers/ValidationServiceProvider.php:97
.