Ticket #37134: 37134.3.diff
File 37134.3.diff, 779 bytes (added by , 6 years ago) |
---|
-
wp-includes/kses.php
function safecss_filter_attr( $css, $deprecated = '' ) { 1951 1951 $css = wp_kses_no_null( $css ); 1952 1952 $css = str_replace( array( "\n", "\r", "\t" ), '', $css ); 1953 1953 1954 if ( preg_match( '%[\\\\(&=}]|/\*%', $css ) ) { // remove any inline css containing \ ( & } = or comments 1954 /** 1955 * Filters list of allowed CSS attributes. 1956 * 1957 * @param string Pattern of unallowed characters in CSS rules. 1958 */ 1959 $unallowed_chars = apply_filters('safe_style_unallowed_chars', '%[\\\\(&=}]|/\*%' ); // remove any inline css containing \ ( & } = or comments 1960 if ( preg_match( $unallowed_chars, $css ) ) { 1955 1961 return ''; 1956 1962 } 1957 1963