From b7e7c7d83b945396b1aa163f2d8448006392cb31 Mon Sep 17 00:00:00 2001 From: Ivan Kovalyov Date: Sat, 13 Oct 2018 13:08:09 +0530 Subject: [PATCH] Update Pingback.php Corrected check for isCidrMatched --- lib/Paymentwall/Pingback.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Paymentwall/Pingback.php b/lib/Paymentwall/Pingback.php index 47dd900..4b7d990 100644 --- a/lib/Paymentwall/Pingback.php +++ b/lib/Paymentwall/Pingback.php @@ -114,7 +114,7 @@ public function isIpAddressValid() } foreach ($rangesWhitelist as $range) { - if (isCidrMatched($this->ipAddress, $range)) { + if ($this->isCidrMatched($this->ipAddress, $range)) { return true; } } @@ -263,4 +263,4 @@ public function isUnderReview() { } -} \ No newline at end of file +}