Changeset 685646
- Timestamp:
- 03/22/2013 01:28:27 PM (13 years ago)
- Location:
- bitcoin-payments-for-woocommerce/trunk
- Files:
-
- 4 edited
-
bitcoinway-woocommerce.php (modified) (1 diff)
-
bwwc-bitcoin-gateway.php (modified) (1 diff)
-
bwwc-include-all.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bitcoin-payments-for-woocommerce/trunk/bitcoinway-woocommerce.php
r681254 r685646 12 12 Plugin URI: http://www.bitcoinway.com/ 13 13 Description: 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.2 214 Version: 1.23 15 15 Author: BitcoinWay 16 16 Author URI: http://www.bitcoinway.com/ -
bitcoin-payments-for-woocommerce/trunk/bwwc-bitcoin-gateway.php
r681254 r685646 434 434 435 435 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']); 437 439 438 440 //Check the Request ip matches that from blockchain.info 439 if ( @$_SERVER['REMOTE_ADDR'] != $originating_ip)441 if ($must_be_prefix != $originated_prefix) 440 442 { 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..."); 442 444 exit ('Bad IP'); 443 445 } -
bitcoin-payments-for-woocommerce/trunk/bwwc-include-all.php
r681254 r685646 7 7 //--------------------------------------------------------------------------- 8 8 // Global definitions 9 define('BWWC_VERSION', '1.2 2');9 define('BWWC_VERSION', '1.23'); 10 10 11 11 //----------------------------------------------- -
bitcoin-payments-for-woocommerce/trunk/readme.txt
r681254 r685646 47 47 == Changelog == 48 48 49 = 1.23 = 50 * Fixed incoming IP check logic for IPN (payment notification) requests. 51 49 52 = 1.22 = 50 53 * Fixed inability to save settings bug.
Note: See TracChangeset
for help on using the changeset viewer.