[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
Tue Jun 23 05:06:14 UTC 2020


#49464: wp_kses_hair and wp_kses_hair_parse regex is not allowing digits or
underscores in attribute names
--------------------------------------+------------------------
 Reporter:  codeforest                |       Owner:  whyisjake
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.5
Component:  Formatting                |     Version:  5.3.2
 Severity:  major                     |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------
Changes (by whyisjake):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48132" 48132]:
 {{{
 #!CommitTicketReference repository="" revision="48132"
 Formatting: Extend `wp_kses_hair` and `wp_kses_hair_parse` to allow digits
 and underscores.

 Fixes a lot of issues around parsing XML/HTML attributes.

 Fixes #49464.

 See #34406, #48608.

 Props codeforest, zodiac1978, johnpgreen, dlh, ayeshrajans, johnpgreen,
 rilwis, travisnorthcutt, miqrogroove, chriscct7, whyisjake.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49464#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list