Commit 664920c7 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 298268: editparams.cgi should accept urlbase, sslbase, etc.. with or without a trailing slash

r=dkl a=LpSolit
parent c8abebcd
......@@ -100,6 +100,11 @@ if ($action eq 'save' && $current_module) {
# assume single linefeed is an empty string
$value =~ s/^\n$//;
}
# Stop complaining if the URL has no trailing slash.
# XXX - This hack can go away once bug 303662 is implemented.
if ($name =~ /(?<!webdot)base$/) {
$value = "$value/" if ($value && $value !~ m#/$#);
}
}
my $changed;
......
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