We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df691c commit 2f658a5Copy full SHA for 2f658a5
src/Validators/ApiKey.php
@@ -45,7 +45,7 @@ public static function check(RequestInterface $request, object $petition = null,
45
if ($list_ip) {
46
if (strpos($list_ip, '/') !== false) {
47
//check IP is in the range
48
- $found_address = \Daycry\RestServer\Libraries\CheckIp::ipv4_in_range(trim($list_ip), $row->ip_addresses);
+ $found_address = \Daycry\RestServer\Libraries\CheckIp::ipv4_in_range(trim($ip_address), trim($list_ip));
49
} elseif ($ip_address === trim($list_ip)) {
50
// there is a match, set the the value to TRUE and break out of the loop
51
$found_address = true;
0 commit comments