Opened 17 years ago
Closed 17 years ago
#4823 closed defect (bug) (invalid)
Wrong REGEXP in formatting.php
Reported by: | RickGC | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
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"
Thanks
Change History (2)
Note: See
TracTickets for help on using
tickets.
Errr.. No.. The s modifier would make the dot match newlines as well. What would be the point of that?