[wp-trac] [WordPress Trac] #9270: force_balance_tags() gets mixed
up with < and numbers
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 4 01:14:01 GMT 2009
#9270: force_balance_tags() gets mixed up with < and numbers
----------------------------+-----------------------------------------------
Reporter: feedr | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Administration | Version: 2.7.1
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
The function mentioned above (in formatting.php) will produce incorrect
output when the entered text contains < followed by a number.
If you enter "3 < 5 here may be some text <a href="#">and a link</a> and
some more text", the closing </a> will be omitted.
The problem here is the regex <(\/?\w*)\s*([^>]*)>. When changed to
<(\/?\w+)\s*([^>]*)> the output will be as expected.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9270>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list