Changeset 6116

Show
Ignore:
Timestamp:
09/14/07 21:13:23 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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