Ticket #1616: data-uri.diff
File data-uri.diff, 602 bytes (added by , 8 years ago) |
---|
-
mu-plugins/jetpack-tweaks.php
201 201 */ 202 202 function sanitize_urls_in_css_properties( $url, $property ) { 203 203 $allowed_properties = array( 'background', 'background-image', 'border-image', 'content', 'cursor', 'list-style', 'list-style-image' ); 204 $allowed_protocols = array( 'http', 'https' );204 $allowed_protocols = array( 'http', 'https', 'data' ); 205 205 206 206 // Clean up the string 207 207 $url = trim( $url, "' \" \r \n" );