Add equal sign to blacklist. Props Pádraic Brady. for 3.1

git-svn-id: http://svn.automattic.com/wordpress/trunk@15383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-07-12 14:30:39 +00:00
parent 5fdb333ab3
commit 44e222d5ae

View File

@ -1373,7 +1373,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
$css = wp_kses_no_null($css);
$css = str_replace(array("\n","\r","\t"), '', $css);
if ( preg_match( '%[\\(&}]|/\*%', $css ) ) // remove any inline css containing \ ( & } or comments
if ( preg_match( '%[\\(&=}]|/\*%', $css ) ) // remove any inline css containing \ ( & } = or comments
return '';
$css_array = explode( ';', trim( $css ) );