Skip to content

Commit

Permalink
Update Pingback.php
Browse files Browse the repository at this point in the history
Corrected check for isCidrMatched
  • Loading branch information
ivan-kovalyov authored Oct 13, 2018
1 parent fac5763 commit b7e7c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Paymentwall/Pingback.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function isIpAddressValid()
}

foreach ($rangesWhitelist as $range) {
if (isCidrMatched($this->ipAddress, $range)) {
if ($this->isCidrMatched($this->ipAddress, $range)) {
return true;
}
}
Expand Down Expand Up @@ -263,4 +263,4 @@ public function isUnderReview() {
}


}
}

0 comments on commit b7e7c7d

Please sign in to comment.