diff options
author | 2008-06-06 05:52:56 +0000 | |
---|---|---|
committer | 2008-06-06 05:52:56 +0000 | |
commit | 3d8ac461b2fe936eccf0604d867c9c654a8ee5b1 (patch) | |
tree | 53b7b0a0304e196b60c92ffb09c5646cabc3c520 | |
parent | Include ability to do totals in the reports. (diff) | |
download | rbot-bugzilla-3d8ac461b2fe936eccf0604d867c9c654a8ee5b1.tar.gz rbot-bugzilla-3d8ac461b2fe936eccf0604d867c9c654a8ee5b1.tar.bz2 rbot-bugzilla-3d8ac461b2fe936eccf0604d867c9c654a8ee5b1.zip |
Append ? if needed for urls.
-rw-r--r-- | bugzilla.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb index 7987b82..1da3f01 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -246,7 +246,9 @@ class BugzillaPlugin < Plugin # If not fall back to asking for the XML data to show_bug.cgi begin - test_dataurl = "#{showbugurl}&ctype=xml" + test_dataurl = showbugurl + test_dataurl += '?' unless test_dataurl =~ ('?') + test_dataurl += "&ctype=xml" test_bugdata = REXML::Document.new(@bot.httputil.get(test_dataurl.gsub("@BUGNO@", "50"))) if test_bugdata.root.name == "bugzilla" @dataurl = test_dataurl |