You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File extensions are duplicated in the RewriteCond directive in public/assets/.htaccess if there are multiple config files that add the same extension to the allowed_extensions list - whether the config files are in the app directory or a third-party package, of a combination of both.
Module version(s) affected
2.3.0
Description
File extensions are duplicated in the
RewriteCond
directive inpublic/assets/.htaccess
if there are multiple config files that add the same extension to theallowed_extensions
list - whether the config files are in the app directory or a third-party package, of a combination of both.How to reproduce
See repo: https://github.com/PortableSteve/ss-assets-test
Possible Solution
Update
\SilverStripe\Assets\File::getAllowedExtensions()
to include a check for the extension before adding it to the$allowedExtensions
array:Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: