[wp-trac] [WordPress Trac] #24157: safecss_filter_attr doesn't allow rgb() in inline styles

WordPress Trac noreply at wordpress.org
Fri Jan 24 14:42:43 UTC 2014


#24157: safecss_filter_attr doesn't allow rgb() in inline styles
--------------------------+-----------------------------
 Reporter:  joehoyle      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Formatting    |     Version:  2.8.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by postpostmodern):

 I recently had safecss_filter_attr() fail when trying to embed an html
 'Large Button' from iTunes linkmaker, the issue was an inline media query
 containing curly brackets.  Which, is probably not a good practice, but it
 seems like it should be able to pass nonetheless.  For reference, the
 style generated from https://linkmaker.itunes.apple.com/us/ which fails is


 {{{
 style="display:inline-
 block;overflow:hidden;background:url(https://linkmaker.itunes.apple.com/htmlResources/assets/en_us//images/web/linkmaker
 /badge_itunes-lrg.png) no-repeat;width:110px;height:40px;@media only
 screen{background-
 image:url(https://linkmaker.itunes.apple.com/htmlResources/assets/en_us//images/web/linkmaker
 /badge_itunes-lrg.svg);}"
 }}}

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


More information about the wp-trac mailing list