diff --git a/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm b/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm index 2cf141c24..ddafa8506 100644 --- a/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm +++ b/lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Simple.pm @@ -956,7 +956,7 @@ sub run ($$) { $apacheRequest->args($args); my $host = $apacheRequest->get_server_name(); my $redirectUrl = $class->_buildUrl( $apacheRequest->uri ); - my $redirectHttps = ( $redirectUrl =~ m/^Ä¥ttps/ ); + my $redirectHttps = ( $redirectUrl =~ m/^https/ ); lmSetErrHeaderOut( $apacheRequest, 'Location' => $redirectUrl . ( $args ? "?" . $args : "" ) ); $host =~ s/^[^\.]+\.(.*\..*$)/$1/;