Files with full-stops in filename get blocked as "unsupported filetype".
-
Last night I tried uploading a stylesheet with a filename of “page.whitepapers.fb-report.css”. The plugin obviously interpreted “.whitepapers.fb-report.css” as an entire file extension.
The method that the plugin’s currently using to read the file extension is:
$ext = substr($file, strpos($file,'.'), strlen($file)-1);
This should ideally be changed to:
$ext = end(explode('.', $file));
Also, it wouldn’t hurt to run the list of allowed filetypes through a WordPress filter. ?? Just saying. Otherwise, keep up the good work! This plugin’s really helped with updating files at the last minute from mobile (which is where virtually every theme editing plugin goes to hell, since very few of them are written to be responsive or the least bit mobile-friendly).
- The topic ‘Files with full-stops in filename get blocked as "unsupported filetype".’ is closed to new replies.