force_balance_tags() gets mixed up with < and numbers
|Reported by:||feedr||Owned by:|
|Severity:||normal||Keywords:||has-patch needs-review close|
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.
Change History (15)
- Component changed from Administration to General
- Keywords has-patch added
- Keywords needs-patch added; has-patch needs-testing dev-feedback removed
- Milestone changed from 2.8 to Future Release
- Keywords has-patch needs-review added; needs-patch 2nd-opinion removed