[wp-trac] [WordPress Trac] #45067: Add CSS URL sanitization to kses.

WordPress Trac noreply at wordpress.org
Tue Oct 16 02:43:03 UTC 2018


#45067: Add CSS URL sanitization to kses.
--------------------------------------+---------------------
 Reporter:  peterwilsoncc             |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  5.0
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by peterwilsoncc):

 It looks like it is getting stripped in `do_shortcodes_in_html_tags()` but
 I unable to figure out where, @azaozz do you have any knowledge around
 this?

 {{{
 wp> do_shortcodes_in_html_tags( '<p><a href="[[gallery]]"
 style="background:url([[gallery]])">Pens and pencils</a></p>', false, [ 2
 => 'gallery' ] );
 => string(97) "<p><a href="[gallery]"
 style="background:url([gallery])">Pens and pencils</a></p>"
 }}}

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


More information about the wp-trac mailing list