Plugin Directory

Changeset 685646


Ignore:
Timestamp:
03/22/2013 01:28:27 PM (13 years ago)
Author:
gesman
Message:

1.23 version update

Location:
bitcoin-payments-for-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bitcoin-payments-for-woocommerce/trunk/bitcoinway-woocommerce.php

    r681254 r685646  
    1212Plugin URI: http://www.bitcoinway.com/
    1313Description: Bitcoin Payments for WooCommerce plugin allows you to accept payments in bitcoins for physical and digital products at your WooCommerce-powered online store.
    14 Version: 1.22
     14Version: 1.23
    1515Author: BitcoinWay
    1616Author URI: http://www.bitcoinway.com/
  • bitcoin-payments-for-woocommerce/trunk/bwwc-bitcoin-gateway.php

    r681254 r685646  
    434434
    435435
    436                 $originating_ip = '91.203.74.202';  // Must be this IP according to: http://blockchain.info/api/api_receive
     436                $ips = gethostbynamel('blockchain.info');
     437                $must_be_prefix    = preg_replace ('|\d+\.\d+$|', "", $ips[0]);
     438                $originated_prefix = preg_replace ('|\d+\.\d+$|', "", @$_SERVER['REMOTE_ADDR']);
    437439
    438440                //Check the Request ip matches that from blockchain.info
    439                 if (@$_SERVER['REMOTE_ADDR'] != $originating_ip)
     441                if ($must_be_prefix != $originated_prefix)
    440442                {
    441                     BWWC__log_event (__FILE__, __LINE__, "Warning: wrong originating IP address: " . $_SERVER['REMOTE_ADDR'] . ". Expected: " . $originating_ip . ". Fraud? IPN request ignored...");
     443                    BWWC__log_event (__FILE__, __LINE__, "Warning: wrong originating IP address: " . $_SERVER['REMOTE_ADDR'] . ". Expected prefix: " . $originated_prefix . ". Fraud? IPN request ignored...");
    442444                    exit ('Bad IP');
    443445                }
  • bitcoin-payments-for-woocommerce/trunk/bwwc-include-all.php

    r681254 r685646  
    77//---------------------------------------------------------------------------
    88// Global definitions
    9 define('BWWC_VERSION',           '1.22');
     9define('BWWC_VERSION',           '1.23');
    1010
    1111//-----------------------------------------------
  • bitcoin-payments-for-woocommerce/trunk/readme.txt

    r681254 r685646  
    4747== Changelog ==
    4848
     49= 1.23 =
     50* Fixed incoming IP check logic for IPN (payment notification) requests.
     51
    4952= 1.22 =
    5053* Fixed inability to save settings bug.
Note: See TracChangeset for help on using the changeset viewer.