Make WordPress Core

Changeset 3892


Ignore:
Timestamp:
06/19/2006 10:01:21 PM (18 years ago)
Author:
ryan
Message:

Filename sanitation from sanitation engineer skeltoac. fixes #2823

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/admin-functions.php

    r3821 r3892  
    17681768                $filename = str_replace("$number$ext", ++$number . $ext, $filename);
    17691769        }
    1770         $filename = preg_replace('#\.(?![^.]+$)#', '-', $filename);
     1770        $filename = str_replace($ext, '', $filename);
     1771        $filename = sanitize_title_with_dashes($filename) . $ext;
    17711772    }
    17721773
Note: See TracChangeset for help on using the changeset viewer.