summaryrefslogtreecommitdiffstats
path: root/editparams.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-17 13:01:16 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-17 13:01:16 +0200
commit0df89d6d2a4c50dbadd2e579e53bb5e685b923f2 (patch)
treeba1ac2f3ee463ede61b8bc29ec468c4619431e18 /editparams.cgi
parenta19a89b719051f356cf16060b35be9bc9aa6cb01 (diff)
downloadbugzilla-0df89d6d2a4c50dbadd2e579e53bb5e685b923f2.tar.gz
bugzilla-0df89d6d2a4c50dbadd2e579e53bb5e685b923f2.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;