sirulli / yoimages

Better image handling capabilities for Wordpress
http://sirulli.org/yoimages/
GNU General Public License v2.0
16 stars 10 forks source link

yoimages-seo doesn't sanitize filename changes. #45

Closed oxyc closed 7 years ago

oxyc commented 7 years ago

If a post includes invalid characters such as πŸ“ΈπŸ‚πŸ’ƒπŸ½, they do not get sanitized.

The fix would be to use the core wp_unique_filename function which internally calls sanitize_file_name that fixes the issue. This would also solve the suffixed counters without custom code.

fagia commented 7 years ago

added sanitize_file_name (but no wp_unique_filename since it would have other side effects) @oxyc thanks for reporting this