platformsh-templates / drupal8

Drupal 8 (Composer) template for Platform.sh.
8 stars 25 forks source link

Case sensitive files for Drupal 8 #35

Closed jameswilson closed 3 years ago

jameswilson commented 4 years ago

There is a passthrough rule in .platform.app.yaml to whitelist static asset file extensions such as jpg, jpeg, gif, png, woff, woff2, svg etc.

However the Regular Expression used in this whitelist rule is case sensitive and thus supports lowercase file extensions only, so if a user uploads an image with file extension .JPG or .JPEG Platform.sh's router server will return a fast 404 before it even gets a chance to make it to the application server.

Sister tickets: