Fix string comparison

This commit is contained in:
Rob Vermaas 2017-09-25 11:54:55 +00:00
parent 27103398c9
commit b645b03536
No known key found for this signature in database
GPG key ID: E114A5F264A8AE8E

View file

@ -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" ||