do final replace with dash, not nothing; avoid empty filename
-
Hello.
I think it would be better if the final preg_replace() on line 91 of wp-sanitize-file-name-plus.php replaced remaining non-ascii characters with “-” or “x” not “”.
A file named
яштф?кбй?мыпдф.jpg
for example will become just.jpg
on uploading, which can cause weirdness.This plugin is awesome. Love that it doesn’t have settings and doesn’t need them.
This should be part of core. I don’t know how the Drupal module “transliterate” is so popular but something like this is not popular on WordPress.https://www.ads-software.com/plugins/wp-sanitize-file-name-plus/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘do final replace with dash, not nothing; avoid empty filename’ is closed to new replies.