From b645b0353609210943058f8617bb8854ce85193a Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Mon, 25 Sep 2017 11:54:55 +0000 Subject: [PATCH] Fix string comparison --- src/lib/Hydra/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 8a0af07b..2e9718f7 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -23,7 +23,7 @@ sub noLoginNeeded { my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname; my $readonly_ips = $c->config->{readonly_ips} // ""; - my $whitelisted = any { $_ == $hostname } split(/,/, $readonly_ips); + my $whitelisted = any { $_ eq $hostname } split(/,/, $readonly_ips); return $whitelisted || $c->request->path eq "google-login" ||