Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#1431 closed defect (bug) (fixed)

Not all character entities accounted for during ampersand (&) conversion

Reported by: Kafkaesqui Owned by: anonymous
Priority: normal Milestone:
Component: General Version: 1.5.2
Severity: normal Keywords: regexp entities convert
Cc:

Description

Several preg_replace lines in functions-formatting.php (lines 44, 101 and 348; revision 2622) account for character entities before converting & to &. However, these currently do not consistently recognize all entities using a mix of letters and numbers (such as ¼), nor any which are in all caps (Þ).

I'm attaching a patch which corrects this.

Attachments (1)

functions-formatting.patch (1.2 KB) - added by Kafkaesqui 8 years ago.
Corrects ampersand conversion preg_replace lines to account for certain character entities

Download all attachments as: .zip

Change History (4)

Corrects ampersand conversion preg_replace lines to account for certain character entities

comment:1   matt8 years ago

  • Milestone set to 1.5.2

comment:2   matt8 years ago

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

(In [3056]) Account for more letter entities, fixes #1431

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.