-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Looking at the code for REST_Controller, is_private_key.
// multiple ip addresses must be separated using a comma, explode and loop
$list_ip_addresses = explode(',', $row->ip_addresses);
$ip_address = $this->input->ip_address();
$found_address = FALSE;
foreach ($list_ip_addresses as $ip_address)
{
if ($ip_address === trim($ip_address))
{
Looking at it, I think it should be:
// multiple ip addresses must be separated using a comma, explode and loop
$list_ip_addresses = explode(',', $row->ip_addresses);
$ip_address = $this->input->ip_address();
$found_address = FALSE;
foreach ($list_ip_addresses as **$list_ip**)
{
**if ($ip_address === trim($list_ip))**
{
Since we want the ip address to match the db if any set.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working