Skip to content

Commit

Permalink
sql injection issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihtoprak committed Dec 21, 2021
1 parent 1230316 commit ae1120d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions core/library/Optimisthub_Transaction_History.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function transactionTab()
public function transactionHistory()
{
global $wpdb;
$results = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $this->tableName ORDER BY id DESC LIMIT 0,1000" ), ARRAY_A );
$results = $wpdb->get_results("SELECT * FROM $this->tableName ORDER BY id DESC LIMIT 0,1000" );
return self::__renderHtml($results);
}

Expand All @@ -60,8 +60,6 @@ private function __renderHtml($logs)
}

$color = $errorMessage ? ' color:red ': '';



$output .= '<div class="per-log '.$extra.'">';
$output .= '<strong>'.__("Order Id", "moka-woocommerce" ).' : </strong>' . data_get($perLog, 'id_cart'). ' - ';
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Moka Pos, Moka Pay plugin;
### Changelog

#### Version 2.3
- Hotfix : Security issue fixed on wpdb::prepare .
- Issue : WooCommerce Thank You page with message issue fixed.
- Issue : Tested up with WooCommerce 6.0.0.
- Issue : Admin panel settings tab screen resulation issues fixed.
Expand Down

0 comments on commit ae1120d

Please sign in to comment.