summaryrefslogtreecommitdiffstats
path: root/editparams.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-17 12:59:25 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-17 12:59:25 +0200
commit664920c7dd532d2243538b1fd3705a72e8d496e6 (patch)
treee945add9a042b49e3ae8da6fc4e9da1953923628 /editparams.cgi
parentc8abebcd41eccf920ab0aba32d4c0a494dc23897 (diff)
downloadbugzilla-664920c7dd532d2243538b1fd3705a72e8d496e6.tar.gz
bugzilla-664920c7dd532d2243538b1fd3705a72e8d496e6.tar.xz
Bug 298268: editparams.cgi should accept urlbase, sslbase, etc.. with or without a trailing slash
r=dkl a=LpSolit
Diffstat (limited to 'editparams.cgi')
-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;