summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xeditparams.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/editparams.cgi b/editparams.cgi
index 6affd324c..28aac9602 100755
--- a/editparams.cgi
+++ b/editparams.cgi
@@ -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;