Partial revert (closes: #2638)

This commit is contained in:
Christophe Maudoux 2022-01-14 22:44:25 +01:00
parent 31aa456888
commit 900a15c2b2

View File

@ -44,10 +44,14 @@ sub tests {
# Check if portal URL is well formated
portalURL => sub {
my $url = $conf->{portal};
# Append or remove trailing slashes
$conf->{portal} =~ s%/*$%/%;
return (
1,
(
( $conf->{portal} =~ m%/$% )
( $url =~ m%/$% )
? ''
: "Portal URL should end with a /"
)