Making WordPress.org

Ticket #1616: data-uri.diff

File data-uri.diff, 602 bytes (added by ryelle, 8 years ago)
  • mu-plugins/jetpack-tweaks.php

     
    201201 */
    202202function sanitize_urls_in_css_properties( $url, $property ) {
    203203        $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' );
    205205
    206206        // Clean up the string
    207207        $url = trim( $url, "' \" \r \n" );