Skip to content

Commit

Permalink
fix XSS vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaxcess committed Dec 31, 2024
1 parent 48a0956 commit 87e18e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function add_shortcode_callback( $atts = array(), $content = null, $tag = '' ) {
$atts
);

$o = '<div id="' . str_replace( '_', '-', $tag ) . '" chainid="' . $args['chainid'] . '" address="' . $args['address'] . '" tokenid="' . $args['tokenid'] . '">';
$o = '<div id="' . esc_attr(str_replace( '_', '-', $tag )) . '" chainid="' . esc_attr($args['chainid']) . '" address="' . esc_attr($args['address']) . '" tokenid="' . esc_attr($args['tokenid']) . '">';
$o .= '</div>';
return $o;
};
Expand Down

0 comments on commit 87e18e1

Please sign in to comment.