Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#1358 closed defect (bug) (fixed)

Wordpress strips '-' from uploaded file names.

Reported by: anonymousbugger's profile anonymousbugger Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: General Keywords:
Focuses: Cc:

Description

When I uploaded a file named '2005-05-11-helsinki-chimney-far-away.jpg', it was saved as 20050511helsinkichimneyfaraway.jpg

IMHO, the result looks quite odd.

Attachments (1)

1358-fix.patch (761 bytes) - added by anonymousbugger 19 years ago.

Download all attachments as: .zip

Change History (4)

#1 @anonymousbugger
19 years ago

  • Patch set to No

#2 @amd
19 years ago

This patch doesn't strip dashes from the filenames.

#3 @Nazgul
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This ticket hasn't been updated in over a year.

I haven't actually tested to see if it's fixed, but the uploading code has had a major overhaul since then and now uses sanitize_title_with_dashes which allows for dashes. (The file mentioned in the patch is even no longer part of trunk)

If this is still a problem, feel free to re-open the ticket.

Note: See TracTickets for help on using tickets.