[wp-trac] [WordPress Trac] #49464: wp_kses_hair and wp_kses_hair_parse regex is not allowing digits or underscores in attribute names
WordPress Trac
noreply at wordpress.org
Thu Feb 20 04:45:23 UTC 2020
#49464: wp_kses_hair and wp_kses_hair_parse regex is not allowing digits or
underscores in attribute names
--------------------------------------+---------------------
Reporter: codeforest | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Formatting | Version: 5.3.2
Severity: major | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by ayeshrajans):
Hi @codeforest - welcome to WordPress Trac!
You are right the regex for HTML attributes do not follow the standard,
and your patch fixes it.
There is a small chunk in the patch (under `valid_unicode` function) that
only has changes in indentation, so I will reroll the patch with those
alignments fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49464#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list