[wp-trac] [WordPress Trac] #28506: Control (non-printing) characters not being stripped out.
WordPress Trac
noreply at wordpress.org
Thu Jun 26 21:12:04 UTC 2014
#28506: Control (non-printing) characters not being stripped out.
------------------------------------------+------------------
Reporter: mauteri | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Formatting | Version: 3.8
Severity: normal | Resolution:
Keywords: needs-testing kses has-patch | Focuses:
------------------------------------------+------------------
Comment (by miqrogroove):
Also tested the regex with and without a quantifier after the character
class. Adding a + allows consecutive chars to be replaced more quickly,
but at the expense of more time spent searching in subject strings that
don't have them. Since posts should not have these control chars at all,
we do not need to optimize for replacement performance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28506#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list