strangerstudios / basic-user-avatars

Add an avatar upload field on frontend pages and on the Edit Profile screen so users and admins can manage custom profile pictures without Gravatar.
https://wordpress.org/plugins/basic-user-avatars/
39 stars 34 forks source link

Wrapping $user->display_name within sanitize_file_name in a PHP strto… #41

Closed semanio closed 3 years ago

semanio commented 3 years ago

This plugin fit a need for us. It's simple and gives a quick frontend option to change subscriber avatars on Wordpress. During some testing, we noticed 404's for some of the files the plugin was generating. Using Chrome Dev Tools we noticed the filenames were camel cased; and sometimes in Linux that causes issues depending on how the filesystem is configured. Thus, we tried out wrapping the $user->display_name within sanitize_file_name in a PHP strtolower function and our 404 file issues went away.

andrewlimaza commented 3 years ago

Thanks @semanio.