Commit 145db1cf authored by Clément OUDOT's avatar Clément OUDOT

Fix regexp for portal default condition (#1669)

parent 58ec7124
......@@ -351,7 +351,7 @@ sub reloadConf {
}
};
my $portal = $self->conf->{portal};
$portal =~ s#^https?://(.*?)(?:/|$)/#$1#;
$portal =~ s#^https?://(.*?)(?:[:/].*)?$#$1#;
HANDLER->tsv->{defaultCondition}->{$portal} ||= sub { 1 };
1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment