diff --git a/C4/Auth.pm b/C4/Auth.pm index 5aa946f460..d6f4d3b138 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1200,6 +1200,7 @@ sub checkauth { # we have to check they are coming from the right ip range my $domain = $branches->{$branchcode}->{'branchip'}; $domain =~ s|\.\*||g; + $domain =~ s/\s+//g; if ( $ip !~ /^$domain/ ) { $cookie = $cookie_mgr->replace_in_list( $cookie, $query->cookie( -name => 'CGISESSID',