From 7b02fea629f4258392d087d529a8b0a4e645675d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Deltombe?= Date: Fri, 8 Feb 2013 13:32:22 +0000 Subject: [PATCH] Clean regexp of previous commit (#467) --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm index 66ab019c3..93e9b260c 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm @@ -458,7 +458,7 @@ sub new { $self->{trustedDomains} = "*" if ( $self->{trustedDomains} =~ /(^|\s)\*(\s|$)/ ); if ( $self->{trustedDomains} and $self->{trustedDomains} ne "*" ) { - $self->{trustedDomains} =~ s#((^|\s+))\.#${1}[^/]+.#g; + $self->{trustedDomains} =~ s#(^|\s+)\.#${1}[^/]+.#g; $self->{trustedDomains} = '(' . join( '|', split( /\s+/, $self->{trustedDomains} ) ) . ')'; $self->{trustedDomains} =~ s/\./\\./g;