diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 12:59:25 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 12:59:25 +0200 |
commit | 664920c7dd532d2243538b1fd3705a72e8d496e6 (patch) | |
tree | e945add9a042b49e3ae8da6fc4e9da1953923628 /editparams.cgi | |
parent | c8abebcd41eccf920ab0aba32d4c0a494dc23897 (diff) | |
download | bugzilla-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-x | editparams.cgi | 5 |
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; |