[buddypress-trac] [BuddyPress] #3087: avatars cant use CAPITAL fileext like JPG

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Feb 27 14:59:35 UTC 2011


#3087: avatars cant use CAPITAL fileext like JPG
-----------------------+-----------------------------
 Reporter:  Ghost_ufa  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  Awaiting Review
Component:  Core       |    Version:  1.2.8
 Keywords:  avatars    |
-----------------------+-----------------------------
 bp-core-avatars.php, function bp_core_check_avatar_type should use case-
 independent regexp patterns:

 if ( ( !empty( $file['file']['type'] ) &&
 !preg_match(’/(jpe?g|gif|png)$/i’, $file['file']['type'] ) ) ||
 !preg_match( ’/(jpe?g|gif|png)$/i’, $file['file']['name'] ) )

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3087>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list