Fix string comparison
This commit is contained in:
		| @@ -23,7 +23,7 @@ sub noLoginNeeded { | |||||||
|  |  | ||||||
|   my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname; |   my $hostname = $c->request->headers->header('X-Forwarded-For') || $c->request->hostname; | ||||||
|   my $readonly_ips = $c->config->{readonly_ips} // ""; |   my $readonly_ips = $c->config->{readonly_ips} // ""; | ||||||
|   my $whitelisted = any { $_ == $hostname } split(/,/, $readonly_ips); |   my $whitelisted = any { $_ eq $hostname } split(/,/, $readonly_ips); | ||||||
|  |  | ||||||
|   return $whitelisted || |   return $whitelisted || | ||||||
|          $c->request->path eq "google-login" || |          $c->request->path eq "google-login" || | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user