diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm index 3af226b9d..a48c3d50c 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI/Request.pm @@ -25,8 +25,8 @@ sub new { my $tmp = $self->script_name; $self->env->{REQUEST_URI} = $self->env->{X_ORIGINAL_URI} if ( $self->env->{X_ORIGINAL_URI} ); - $self->env->{PATH_INFO} =~ s|^$tmp|/|; $self->env->{PATH_INFO} =~ s|//+|/|g; + $self->env->{PATH_INFO} =~ s|^$tmp|/|; $self->{uri} = uri_unescape( $self->env->{REQUEST_URI} ); $self->{uri} =~ s|//+|/|g; $self->{error} = 0;