silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
722 stars 822 forks source link

[2010-11-23] "Files & Images" htaccess extension list is case sensitive #1928

Closed silverstripe-issues closed 11 years ago

silverstripe-issues commented 11 years ago

created by: x75 created at: 2010-11-23 original ticket: http://open.silverstripe.org/ticket/6224


Files with an uppercase extension will are blocked. Example: test.jpg works test.JPG won't work

Solution: Add ?i: to the reqexp:

<FilesMatch "\.(?i:html|htm|xhtml|js|css|bmp|png|gif|jpg|jpeg|ico|pcx|tif|tiff|au|mid|midi|mpa|mp3|ogg|m4a|ra|wma|wav|cda|avi|mpg|mpeg|asf|wmv|m4v|mov|mkv|mp4|swf|flv|ram|rm|doc|docx|txt|rtf|xls|xlsx|pages|ppt|pptx|pps|csv|cab|arj|tar|zip|zipx|sit|sitx|gz|tgz|bz2|ace|arc|pkg|dmg|hqx|jar|xml|pdf|f4v)$">
silverstripe-issues commented 11 years ago

comment by: @wilr (wrossiter) created at: 2013-05-08


Worth migrating, we currently define both UPPER and lower versions. This patch would give support to Mixed extensions.

NightJar commented 11 years ago

fixed by 5ec8158977e801b87667ac19474d1fa43fbea58f (and corresponding installer fix)