Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#23267 closed defect (bug) (fixed)

Encoding problem with displaying filenames

Reported by: pavelevap's profile pavelevap Owned by: nacin's profile nacin
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: has-patch needs-testing
Focuses: Cc:

Description

Reported here: #21217 (first point).

It was repaired, but probably only for older media stuff (pre 3.5). Tested with latest version and there are still problems with displaying filenames. Testing media filename: "Žluťoučký kůň.png"

  • File successfully uploaded as "Žluťoučký-kůň.png" (space replaced).
  • But filename is displayed as "luťoučký-kůň.png".

Filename is saved right in database, but wrong filename can be seen in Save metabox or in Media modal window.

Attachments (1)

23267.patch (1.0 KB) - added by SergeyBiryukov 12 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
12 years ago

  • Keywords has-patch needs-testing added
  • Milestone changed from Awaiting Review to 3.6

#2 @pavelevap
12 years ago

Thank you, Sergey! I thought there are more wp_basename() functions needed...

#3 @nacin
11 years ago

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

In 24585:

Use wp_basename() in newer media code for filenames to avoid encoding issues on display. props SergeyBiryukov, fixes #23267.

Note: See TracTickets for help on using tickets.