Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#23267 closed defect (bug) (fixed)

Encoding problem with displaying filenames

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

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 14 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
14 years ago

  • Keywords has-patch needs-testing added
  • Milestone Awaiting Review → 3.6

#2 @pavelevap
14 years ago

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

#3 @nacin
13 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → 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.