Skip to content

Commit

Permalink
linked #7: 添加 tx 的存在的校验
Browse files Browse the repository at this point in the history
  • Loading branch information
bestony committed Nov 13, 2018
1 parent 962a303 commit b25111d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions woocommerce-erc20-payment-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ function inkerk_thankyour_request() {
$data = $_POST;
$order_id = $data['orderid'];
$tx = $data['tx'];
if (strlen($tx) != 66 || substr($tx,0,2) != '0x'){
return ;
}
/**
* 获取到订单
*/
Expand Down

0 comments on commit b25111d

Please sign in to comment.