Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit 13793fd

Browse files
authored
Merge pull request #30 from zero-24/patch-1
fixes #28 and use in_array
2 parents e609e21 + 3987c20 commit 13793fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haraka.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function displayHaraka()
7676
if (!$display_haraka && $whitelist)
7777
{
7878
$ip_whitelist = preg_split('/\s*\n\s*/', $whitelist);
79-
$display_haraka = array_search($this->app->input->server->get('REMOTE_ADDR'), $whitelist) !== false;
79+
$display_haraka = in_array($this->app->input->server->get('REMOTE_ADDR'), $ip_whitelist);
8080
}
8181

8282
if (!$display_haraka)

0 commit comments

Comments
 (0)