[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-151-g15d328f

Sandro Tosi morph at debian.org
Mon Dec 27 22:41:54 UTC 2010


The following commit has been merged in the master branch:
commit 15d328f1b1e2aa1f3ce094d4b551bcd328a94cf9
Author: Sandro Tosi <morph at debian.org>
Date:   Mon Dec 27 00:04:29 2010 +0100

    fix a crash in case when the pre-subject text contains '%', that got interpreted as special sequences; thanks to Mike Miller for the report and patch; Closes: #594354

diff --git a/debian/changelog b/debian/changelog
index bdfaeb4..5814736 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,8 +23,12 @@ reportbug (4.99.0) UNRELEASED; urgency=low
   * bin/reportbug, reportbug/ui/gtk2_ui.py
     - warn that bug reports are publicly archive (email address included);
       thanks to Holger Levsen for the report; Closes: #605892
+  * reportbug/ui/gtk2_ui.py
+    - fix a crash in case when the pre-subject text contains '%', that got
+      interpreted as special sequences; thanks to Mike Miller for the report and
+      patch; Closes: #594354
 
- -- Sandro Tosi <morph at debian.org>  Sun, 26 Dec 2010 18:41:30 +0100
+ -- Sandro Tosi <morph at debian.org>  Mon, 27 Dec 2010 00:02:20 +0100
 
 reportbug (4.12.6) unstable; urgency=low
 
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index b0afd82..747b7ca 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1080,7 +1080,10 @@ class DisplayReportPage (Page):
         return scrolled
 
     def execute (self, message, *args):
-        self.view.get_buffer().set_text (message % args)
+        # 'use' args only if it's passed
+        if args:
+            message = message % args
+        self.view.get_buffer().set_text(message)
 
 class LongMessagePage (Page):
     default_complete = True

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list