[evolution-rss] sanitize value passed to list store



commit 61f6f121789893d6001bbc8499298aba0ac846a3
Author: Lucian Langa <lucilanga gnome org>
Date:   Mon May 24 22:30:49 2010 +0300

    sanitize value passed to list store

 src/rss-config-factory.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index c5e8ee9..18b8a7a 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -372,10 +372,13 @@ construct_list(gpointer key, gpointer value, gpointer user_data)
 	GtkListStore  *store = user_data;
 	GtkTreeIter    iter;
 	gchar *full_name, *name, *full_path;
+	gchar *tmp;
 
 	gtk_list_store_append (store, &iter);
 	full_name = lookup_feed_folder(key);
 	name = g_path_get_basename(full_name);
+	tmp = g_markup_escape_text(name, -1);
+	g_free(name);
 	full_path = g_build_filename(
 			lookup_main_folder(),
 			full_name,
@@ -384,12 +387,12 @@ construct_list(gpointer key, gpointer value, gpointer user_data)
 		store,
 		&iter,
 		0, g_hash_table_lookup(rf->hre, lookup_key(key)),
-		1, name,
+		1, tmp,
 		2, g_hash_table_lookup(rf->hrt, lookup_key(key)),
 		3, g_strdup(key),
 		4, full_path,
 		-1);
-	g_free(name);
+	g_free(tmp);
 	g_free(full_path);
 }
 



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