WordPress.org

Make WordPress Core

Changeset 15356


Ignore:
Timestamp:
06/30/10 17:46:37 (4 years ago)
Author:
ryan
Message:

Don't use deprecated function. Blacklist curlies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/kses.php

    r14412 r15356  
    13741374    $css = str_replace(array("\n","\r","\t"), '', $css); 
    13751375 
    1376     if ( preg_match( '%[\\(&]|/\*%', $css ) ) // remove any inline css containing \ ( & or comments 
     1376    if ( preg_match( '%[\\(&}]|/\*%', $css ) ) // remove any inline css containing \ ( & } or comments 
    13771377        return ''; 
    13781378 
    1379     $css_array = split( ';', trim( $css ) ); 
     1379    $css_array = explode( ';', trim( $css ) ); 
    13801380    $allowed_attr = apply_filters( 'safe_style_css', array( 'text-align', 'margin', 'color', 'float', 
    13811381    'border', 'background', 'background-color', 'border-bottom', 'border-bottom-color', 
Note: See TracChangeset for help on using the changeset viewer.