Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#4823 closed defect (bug) (invalid)

Wrong REGEXP in formatting.php

Reported by: rickgc's profile RickGC Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


In wp-includes/formatting.php, line 649 the REGEXP is wrong?

I think it must be

$textarr = preg_split("/(<.*>)/Us", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between

Note the extra s in "/(<.*>)/Us"


Change History (2)

#1 @Otto42
16 years ago

Errr.. No.. The s modifier would make the dot match newlines as well. What would be the point of that?

#2 @DD32
16 years ago

  • Milestone 2.5 deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 2.2.2 deleted

Closing as no traction, and it appears to have not been an issue.

re-open if i'm mistaken.

Note: See TracTickets for help on using tickets.