aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 13:35:07 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 13:35:07 +0200
commit4750ad0849eac5f91c905fbde7a4bde383018dff (patch)
tree02c82d7ead51772b9df0b4fff38bc84a064e66c6
parentAdd reference to htmlentities. (diff)
downloadrbot-bugzilla-4750ad0849eac5f91c905fbde7a4bde383018dff.tar.gz
rbot-bugzilla-4750ad0849eac5f91c905fbde7a4bde383018dff.tar.bz2
rbot-bugzilla-4750ad0849eac5f91c905fbde7a4bde383018dff.zip
Don't append an extra slash to the base URL (for the URL that is actually shown to the user).
-rw-r--r--bugzilla.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 697f971..b1dd039 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -226,7 +226,9 @@ class BugzillaPlugin < Plugin
# Guess at the public URL to show for a bug.
def guess_showbugurl
- @showbugurl = "#{baseurl}/show_bug.cgi?id=@BUGNO@"
+ @showbugurl = baseurl
+ @showbugurl += "/" unless baseurl[-1..-1] == "/"
+ @showbugurl += "show_bug.cgi?id=@BUGNO@"
end
# Guess at the URL for the XML format of any given bug.