Make WordPress Core

Changeset 6116


Ignore:
Timestamp:
09/14/2007 09:13:23 PM (17 years ago)
Author:
markjaquith
Message:

Properly name files with unknown extensions (for people with unfiltered_upload cap, natch). props Nazgul. fixes #4974 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r5700 r6116  
    141141
    142142        if ( !$ext )
    143             $ext = strrchr($file['name'], '.');
     143            $ext = ltrim(strrchr($file['name'], '.'), '.');
    144144    }
    145145
Note: See TracChangeset for help on using the changeset viewer.