Add ending slash to portal URL if missing (#1455)

This commit is contained in:
Christophe Maudoux 2018-06-15 20:57:48 +02:00
parent 0986dcebfb
commit fc15a9a8f3

View File

@ -38,6 +38,14 @@ sub tests {
);
},
# Check if portal URL is well formated
portalURL => sub {
$conf->{portal} .= '/'
unless ( $conf->{portal} =~ /^.*\/$/ );
return 1;
},
# Check if virtual hosts are in the domain
vhostInDomainOrCDA => sub {
return 1 if ( $conf->{cda} );