Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Secure filter_by attribute using esc_attr
  • Loading branch information
DarrenWestwood committed Jun 1, 2021
1 parent ca55fa3 commit d2059d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockonomics-woocommerce.php
Expand Up @@ -75,7 +75,7 @@ function filter_orders() {
global $typenow;
if ( 'shop_order' === $typenow ) {
?>
<input size='26' value="<?php if(isset( $_GET['filter_by'] )) echo(sanitize_text_field($_GET['filter_by'])); ?>" type='name' placeholder='Filter by crypto address/txid' name='filter_by'>
<input size='26' value="<?php if(isset( $_GET['filter_by'] )) echo(esc_attr($_GET['filter_by'])); ?>" type='name' placeholder='Filter by crypto address/txid' name='filter_by'>
<?php
}
}
Expand Down

0 comments on commit d2059d9

Please sign in to comment.