Ticket #1431 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 5 years ago

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

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

Change History

Corrects ampersand conversion preg_replace lines to account for certain character entities

comment:1   matt7 years ago

  • Milestone set to 1.5.2

comment:2   matt6 years ago

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

(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.