Skip to content

Commit

Permalink
Fix when block or shortcode uses more than one css class
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho committed Apr 23, 2020
1 parent 641c3ca commit 53786a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntaxhighlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ function shortcode_callback( $atts, $code = '', $tag = false ) {

// Sanitize the "classname" parameter
if ( 'class-name' == $key )
$value = trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) );
$value = "'" . trim( preg_replace( '/[^a-zA-Z0-9 _-]/i', '', $value ) ) . "'";

// Special sanitization for "pad-line-numbers"
if ( 'pad-line-numbers' == $key ) {
Expand Down

0 comments on commit 53786a3

Please sign in to comment.