[wp-trac] [WordPress Trac] #55177: Normalizing relative CSS links should skip data URIs

WordPress Trac noreply at wordpress.org
Thu Feb 17 14:46:17 UTC 2022


#55177: Normalizing relative CSS links should skip data URIs
--------------------------------------+----------------------
 Reporter:  staatic                   |       Owner:  ocean90
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.9.1
Component:  Script Loader             |     Version:  5.9
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------
Changes (by ocean90):

 * owner:  (none) => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52754" 52754]:
 {{{
 #!CommitTicketReference repository="" revision="52754"
 Script Loader: Prevent normalizing data URIs in
 `_wp_normalize_relative_css_links()`.

 This prevents making data URIs as in `mask-
 image:url('data:image/svg+xml;utf8,<svg...` relative to the WordPress
 installation.

 Props staatic.
 See #54243.
 Fixes #55177.
 }}}

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


More information about the wp-trac mailing list