[pan2] properly escape < and > chars in subject



commit 3f81af17d217b81b519e08f174260dc87df8169d
Author: Heinrich MÃller <henmull src gnome org>
Date:   Wed Dec 26 19:13:46 2012 +0100

    properly escape < and > chars in subject

 pan/gui/pan.cc       |    1 +
 pan/gui/task-pane.cc |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 85cf7f6..3412f20 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -863,6 +863,7 @@ namespace
 
 #endif
 
+    //todo move to pancolors
     fg_col = GroupPrefs::color_to_string(def_fg);
     bg_col = GroupPrefs::color_to_string(def_bg);
 
diff --git a/pan/gui/task-pane.cc b/pan/gui/task-pane.cc
index a8b91b8..8619f2b 100644
--- a/pan/gui/task-pane.cc
+++ b/pan/gui/task-pane.cc
@@ -110,8 +110,8 @@ namespace
 
     EvolutionDateMaker date_maker;
     char * date(0);
-
     TaskUpload * tu (dynamic_cast<TaskUpload*>(task));
+
     if (tu)
     {
       const Article& a(tu->get_article());
@@ -119,7 +119,7 @@ namespace
       g_snprintf(buffer,size,
                  _("\n<u>Upload</u>\n\n<i>Subject:</i> <b>\"%s\"</b>\n<i>From:</i> <b>%s</b>\n"
                    "<i>Groups:</i> <b>%s</b>\n<i>Sourcefile:</i> <b>%s</b>\n"),
-                 a.subject.to_string().c_str(), escaped(a.author.to_string()).c_str(),
+                 escaped(a.subject.to_string()).c_str(), escaped(a.author.to_string()).c_str(),
                  tu->get_groups().c_str(), tu->get_filename().c_str());
     }
 
@@ -131,7 +131,7 @@ namespace
       g_snprintf(buffer, size,
                  _("\n<u>Download</u>\n\n<i>Subject:</i> <b>\"%s\"</b>\n<i>From:</i> <b>%s</b>\n<i>Date:</i> <b>%s</b>\n"
                    "<i>Groups:</i> <b>%s</b>\n<i>Save Path:</i> <b>%s</b>\n"),
-                 a.subject.to_string().c_str(), escaped(a.author.to_string()).c_str(), date ? date : _("unknown"),
+                 escaped(a.subject.to_string()).c_str(), escaped(a.author.to_string()).c_str(), date ? date : _("unknown"),
                  ta->get_groups().c_str(), ta->get_save_path().to_string().c_str());
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]