diff options
author | David Lawrence <dlawrence@mozilla.com> | 2011-08-22 19:21:08 +0200 |
---|---|---|
committer | David Lawrence <dlawrence@mozilla.com> | 2011-08-22 19:21:08 +0200 |
commit | 9344a458c830ba066b9004c301d0fc6cabc8f229 (patch) | |
tree | ff06e420d70da1459af478c2619fb18900591d5c /editparams.cgi | |
parent | f30b939630917a63bc733e3963869643eeccdc90 (diff) | |
parent | dd7eacbef2571efe55e5b18d80e93837dc6619d1 (diff) | |
download | bugzilla-9344a458c830ba066b9004c301d0fc6cabc8f229.tar.gz bugzilla-9344a458c830ba066b9004c301d0fc6cabc8f229.tar.xz |
merged with bugzilla/4.2
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; |