Skip to content

Commit

Permalink
Merge pull request #58 from skymeissner/patch-1
Browse files Browse the repository at this point in the history
fix transaction status forwarding with multiple IPs
  • Loading branch information
T-Kuchel authored May 2, 2017
2 parents 0a68059 + 80eb11d commit 78f25e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Helper/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function isRemoteIpValid()
$sRemoteIp = $this->getRemoteIp();
$sValidIps = $this->getConfigParam('valid_ips', 'processing', 'payone_misc');
$aWhitelist = explode("\n", $sValidIps);
$aWhitelist = array_filter(array_map('trim', $aWhitelist));
if (array_search($sRemoteIp, $aWhitelist) !== false) {
return true;
}
Expand Down

0 comments on commit 78f25e3

Please sign in to comment.