Make WordPress Core

Opened 13 years ago

Closed 12 years ago

#21625 closed defect (bug) (fixed)

Recent Drafts widget issue with UTF-8 characters

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: nacin's profile nacin
Milestone: 3.5 Priority: normal
Severity: normal Version: 2.7
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description

Same issue as in #11528.

\s incorrectly targets some UTF-8 characters (Cyrillic Р or Hebrew נ).

Steps to reproduce:

  1. Create a draft with "САПР" as a content.
  2. It will be displayed as "САП�" in the Recent Drafts dashboard widget.

Attachments (2)

21625.patch (987 bytes) - added by SergeyBiryukov 13 years ago.
21625.2.patch (986 bytes) - added by SergeyBiryukov 13 years ago.
Removed "+" sign (unnecessary with PREG_SPLIT_NO_EMPTY)

Download all attachments as: .zip

Change History (4)

@SergeyBiryukov
13 years ago

Removed "+" sign (unnecessary with PREG_SPLIT_NO_EMPTY)

#1 @ryan
12 years ago

  • Keywords commit added

#2 @nacin
12 years ago

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

In [22306]:

Split by [\r\n\t ] rather than \s to avoid UTF-8 issues. props SergeyBiryukov. fixes #21625.

Note: See TracTickets for help on using tickets.