Phoenix_Worldpay - Version 1.4.3

Version Notes

- fixed domain validation logic

Download this release

Release Info

Developer Magento Core Team
Extension Phoenix_Worldpay
Version 1.4.3
Comparing to
See all releases


Code changes from version 1.4.2 to 1.4.3

app/code/community/Phoenix/Worldpay/controllers/ProcessingController.php CHANGED
@@ -162,8 +162,8 @@ class Phoenix_Worldpay_ProcessingController extends Mage_Core_Controller_Front_A
162
  $request = $this->getRequest()->getServer();
163
  $remoteAddr = $request['REMOTE_ADDR'];
164
  }
165
- if ((substr($remoteAddr, 0, 11) != '155.136.16.') ||
166
- preg_match('/\.worldpay\.com$/', gethostbyaddr($remoteAddr))) {
167
  Mage::throwException('IP can\'t be validated as WorldPay-IP.');
168
  }
169
 
@@ -298,4 +298,4 @@ class Phoenix_Worldpay_ProcessingController extends Mage_Core_Controller_Front_A
298
  Mage::log($debugData, null, 'payment_worldpay_cc.log', true);
299
  }
300
  }
301
- }
162
  $request = $this->getRequest()->getServer();
163
  $remoteAddr = $request['REMOTE_ADDR'];
164
  }
165
+ if ((substr($remoteAddr, 0, 11) != '155.136.16.') &&
166
+ !preg_match('/\.worldpay\.com$/', gethostbyaddr($remoteAddr))) {
167
  Mage::throwException('IP can\'t be validated as WorldPay-IP.');
168
  }
169
 
298
  Mage::log($debugData, null, 'payment_worldpay_cc.log', true);
299
  }
300
  }
301
+ }
app/code/community/Phoenix/Worldpay/etc/config.xml CHANGED
@@ -21,7 +21,7 @@
21
  <config>
22
  <modules>
23
  <Phoenix_Worldpay>
24
- <version>1.4.2</version>
25
  </Phoenix_Worldpay>
26
  </modules>
27
  <global>
21
  <config>
22
  <modules>
23
  <Phoenix_Worldpay>
24
+ <version>1.4.3</version>
25
  </Phoenix_Worldpay>
26
  </modules>
27
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Phoenix_Worldpay</name>
4
- <version>1.4.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -19,13 +19,11 @@ Notice: This extension is still beta. We recommend to test all transactions in y
19
  The extension is developed and maintained by the German Magento Silver Partner Phoenix Medien (http://www.phoenix-medien.de).
20
 
21
  The development was sponsored by liaison dangereuse (http://www.liaison-dangereuse.de).</description>
22
- <notes>- accept callback from *.worldpay.com
23
- - updated admin url
24
- (http://www.worldpay.com/support/index.php?page=domain-change&amp;c=WW)</notes>
25
  <authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
26
  <date>2013-04-29</date>
27
- <time>07:54:31</time>
28
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="worldpay"><dir name="pdf"><file name="info.phtml" hash="3a92c60f5c05a3e51df366cee651edd6"/></dir><file name="info.phtml" hash="ca932cd58bc6e0c951e6119d4ee40185"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="worldpay.xml" hash="ac4191773623ae2ad6170f363866ed43"/></dir><dir name="template"><dir name="worldpay"><file name="blank.phtml" hash="8b7d8aa0521878b2dd796acfd4d655b6"/><file name="cancel.phtml" hash="350348b8fecb9b7c2b1045d1a8edd9c7"/><file name="failure.phtml" hash="9126748b39206ddd936ad72357bcf9b7"/><file name="form.phtml" hash="8c7184cbaffc115349de415d12273528"/><file name="info.phtml" hash="9c17afe371e23674979aad7e6ce82fe3"/><file name="redirect.phtml" hash="441b182afae33e16b26bbfdae2f12a87"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Worldpay.csv" hash="a261960a7cd06a38f6fc686cfa7c08e2"/></dir><dir name="en_GB"><file name="Phoenix_Worldpay.csv" hash="7ab5f7f407e252616b2bd04ebe0564cd"/></dir><dir name="en_US"><file name="Phoenix_Worldpay.csv" hash="49947b473e21e818ce0d39db5896cf96"/></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_Worldpay.xml" hash="52b9dc5cd0d94ab43d8691438f090617"/></dir></target><target name="magecommunity"><dir name="Phoenix"><dir name="Worldpay"><dir name="Block"><file name="Cancel.php" hash="b0f213ee8e45d0b8b48a6fad48f05017"/><file name="Failure.php" hash="5add6ed9890109ba624b7a16bc0504f5"/><file name="Form.php" hash="d279b2d502e875e155101007eef7ebc5"/><file name="Info.php" hash="845d37c36ea2973599324f9e294969a4"/><file name="Redirect.php" hash="ee8eb2b8cdabaf9ae0dea66fd7362777"/><file name="Success.php" hash="0c072e272d53a0b24e5157201cd65877"/></dir><dir name="controllers"><file name="ProcessingController.php" hash="d6cf3ada50c502b6432a3811af1f9065"/></dir><dir name="etc"><file name="config.xml" hash="e84e5a96136f1c74ce47adef3942de46"/><file name="system.xml" hash="b5f29fbcc56636bd519058804f08d66d"/></dir><dir name="Helper"><file name="Data.php" hash="954555e22d7867b2eb2b698b86405d63"/></dir><dir name="Model"><dir name="Config"><dir name="Backend"><file name="Instid.php" hash="07147ceac69c3c19593b4a24873f15cc"/></dir></dir><dir name="Source"><file name="RequestType.php" hash="795d51b4c3f04bb00cf6cca5a3180cd7"/><file name="SignatureType.php" hash="68e8267596e0c040633f2ce8e40472fe"/><file name="TransactionMode.php" hash="da4cadb5df1213edc34f22b67235d374"/></dir><file name="Cc.php" hash="ea421e006f1c15ffd5aeb558a83e86dd"/><file name="Config.php" hash="9098369b245a824396354e1b64cd47ab"/></dir></dir></dir></target></contents>
29
  <compatible/>
30
  <dependencies/>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Phoenix_Worldpay</name>
4
+ <version>1.4.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
19
  The extension is developed and maintained by the German Magento Silver Partner Phoenix Medien (http://www.phoenix-medien.de).
20
 
21
  The development was sponsored by liaison dangereuse (http://www.liaison-dangereuse.de).</description>
22
+ <notes>- fixed domain validation logic</notes>
 
 
23
  <authors><author><name>Phoenix Medien</name><user>auto-converted</user><email>info@phoenix-medien.de</email></author></authors>
24
  <date>2013-04-29</date>
25
+ <time>10:48:50</time>
26
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="worldpay"><dir name="pdf"><file name="info.phtml" hash="3a92c60f5c05a3e51df366cee651edd6"/></dir><file name="info.phtml" hash="ca932cd58bc6e0c951e6119d4ee40185"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="worldpay.xml" hash="ac4191773623ae2ad6170f363866ed43"/></dir><dir name="template"><dir name="worldpay"><file name="blank.phtml" hash="8b7d8aa0521878b2dd796acfd4d655b6"/><file name="cancel.phtml" hash="350348b8fecb9b7c2b1045d1a8edd9c7"/><file name="failure.phtml" hash="9126748b39206ddd936ad72357bcf9b7"/><file name="form.phtml" hash="8c7184cbaffc115349de415d12273528"/><file name="info.phtml" hash="9c17afe371e23674979aad7e6ce82fe3"/><file name="redirect.phtml" hash="441b182afae33e16b26bbfdae2f12a87"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Phoenix_Worldpay.csv" hash="a261960a7cd06a38f6fc686cfa7c08e2"/></dir><dir name="en_GB"><file name="Phoenix_Worldpay.csv" hash="7ab5f7f407e252616b2bd04ebe0564cd"/></dir><dir name="en_US"><file name="Phoenix_Worldpay.csv" hash="49947b473e21e818ce0d39db5896cf96"/></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_Worldpay.xml" hash="52b9dc5cd0d94ab43d8691438f090617"/></dir></target><target name="magecommunity"><dir name="Phoenix"><dir name="Worldpay"><dir name="Block"><file name="Cancel.php" hash="b0f213ee8e45d0b8b48a6fad48f05017"/><file name="Failure.php" hash="5add6ed9890109ba624b7a16bc0504f5"/><file name="Form.php" hash="d279b2d502e875e155101007eef7ebc5"/><file name="Info.php" hash="845d37c36ea2973599324f9e294969a4"/><file name="Redirect.php" hash="ee8eb2b8cdabaf9ae0dea66fd7362777"/><file name="Success.php" hash="0c072e272d53a0b24e5157201cd65877"/></dir><dir name="controllers"><file name="ProcessingController.php" hash="781535236868f04077cdcdc6c790c521"/></dir><dir name="etc"><file name="config.xml" hash="63cfda6b019dc14c2f99f831902a048b"/><file name="system.xml" hash="b5f29fbcc56636bd519058804f08d66d"/></dir><dir name="Helper"><file name="Data.php" hash="954555e22d7867b2eb2b698b86405d63"/></dir><dir name="Model"><dir name="Config"><dir name="Backend"><file name="Instid.php" hash="07147ceac69c3c19593b4a24873f15cc"/></dir></dir><dir name="Source"><file name="RequestType.php" hash="795d51b4c3f04bb00cf6cca5a3180cd7"/><file name="SignatureType.php" hash="68e8267596e0c040633f2ce8e40472fe"/><file name="TransactionMode.php" hash="da4cadb5df1213edc34f22b67235d374"/></dir><file name="Cc.php" hash="ea421e006f1c15ffd5aeb558a83e86dd"/><file name="Config.php" hash="9098369b245a824396354e1b64cd47ab"/></dir></dir></dir></target></contents>
27
  <compatible/>
28
  <dependencies/>
29
  </package>