Partial revert (closes: #2638)
This commit is contained in:
parent
31aa456888
commit
900a15c2b2
|
@ -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 /"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user