[buddypress-trac] [BuddyPress Trac] #7484: Resize member avatar error with cyrillic (not latin) filename

buddypress-trac noreply at wordpress.org
Wed Jun 21 21:30:27 UTC 2017

#7484: Resize member avatar error with cyrillic (not latin) filename
 Reporter:  snookerist    |       Owner:  r-a-y
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.9
Component:  Core          |     Version:  2.3.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"11602"]:
 #!CommitTicketReference repository="" revision="11602"
 Attachments: Fix issues with uploading a file containing accented

 Previously, when uploading a new avatar or cover image with accented
 characters, the upload would fail.  This is due to an upstream WordPress
 bug since WP does not handle sanitizing these types of file names
 (See #WP22363, #WP24661, #WP15955 for just a few of the related problems.)

 To fix this in BuddyPress, we are putting in a workaround to convert file
 names with UTF-8 characters to their ASCII equivalent.  First, we try to
 use PHP's `intl` extension if available.  If not, we use WP's
 `remove_accents()` function, and lastly if the filename still contains
 UTF-8 characters, we also try to use `iconv()` if available.

 This is considered a workaround until WordPress fixes this in core.

 Fixes #7484.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7484#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list