From 0d5faacc0a45b5e0005ab03ba7cfc684b87d740f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Tue, 31 Aug 2010 15:14:44 +0000 Subject: [PATCH] Manage // in path when checking IssuerDB path --- modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm index 7b84f94ae..a21517470 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm @@ -263,6 +263,7 @@ sub new { # Get current path my $url_path = $self->url( -absolute => 1 ); + $url_path =~ s#^//#/#; $self->lmLog( "[IssuerDB activation] Path of current request is $url_path", 'debug' ); @@ -1189,7 +1190,7 @@ sub controlExistingSession { { my $h = $self->getApacheSession($id); - if ( $h ) { + if ($h) { %{ $self->{sessionInfo} } = %$h; # Logout if required