Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#3087 closed defect (bug) (fixed)

avatars cant use CAPITAL fileext like JPG

Reported by: Ghost_ufa Owned by:
Priority: normal Milestone: 1.5
Component: Core Version: 1.2.8
Severity: Keywords: has-patch
Cc:

Description

bp-core-avatars.php, function bp_core_check_avatar_type should use case-independent regexp patterns:

if ( ( !empty( $filefiletype ) && !preg_match(’/(jpe?g|gif|png)$/i’, $filefiletype ) )
!preg_match( ’/(jpe?g|gif|png)$/i’, $filefilename ) )

Attachments (2)

3087.01.patch (2.1 KB ) - added by r-a-y 15 years ago.
Patch for BP 1.3-bleeding
3087.02.patch (936 bytes ) - added by r-a-y 15 years ago.
Patch for BP 1.2-branch

Download all attachments as: .zip

Change History (5)

@r-a-y
15 years ago

Patch for BP 1.3-bleeding

@r-a-y
15 years ago

Patch for BP 1.2-branch

#1 @r-a-y
15 years ago

  • Keywords has-patch added; avatars removed

#2 @djpaul
15 years ago

  • Resolutionfixed
  • Status newclosed

(In [4169]) Update regex to match case insensitive file extensions when checking avatar uploads. Fixes #3087, props r-a-y

#3 @DJPaul
15 years ago

  • Milestone Awaiting Review1.3
Note: See TracTickets for help on using tickets.