Make WordPress Core


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

Filename sanitation from sanitation engineer skeltoac. fixes #2823

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r3868 r3891  
    18831883                $filename = str_replace("$number$ext", ++$number . $ext, $filename);
    18841884        }
    1885         $filename = preg_replace('#\.(?![^.]+$)#', '-', $filename);
     1885        $filename = str_replace($ext, '', $filename);
     1886        $filename = sanitize_title_with_dashes($filename) . $ext;
    18861887    }
    18871888
Note: See TracChangeset for help on using the changeset viewer.