[seahorse] Escape attribute keyring attribute names properly.
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] Escape attribute keyring attribute names properly.
- Date: Wed, 19 Jan 2011 22:34:25 +0000 (UTC)
commit 1217669712d3279377f7ed2ac123f847e7983474
Author: Stef Walter <stefw collabora co uk>
Date: Wed Jan 19 16:33:52 2011 -0600
Escape attribute keyring attribute names properly.
https://bugzilla.gnome.org/show_bug.cgi?id=633568
gkr/seahorse-gkr-item-properties.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gkr/seahorse-gkr-item-properties.c b/gkr/seahorse-gkr-item-properties.c
index f9504c3..72f6b9d 100644
--- a/gkr/seahorse-gkr-item-properties.c
+++ b/gkr/seahorse-gkr-item-properties.c
@@ -455,7 +455,9 @@ transform_item_details (const GValue *from, GValue *to)
/* Build up the display string */
for(i = 0; i < attrs->len; ++i) {
attr = &(gnome_keyring_attribute_list_index (attrs, i));
- g_string_append_printf (details, "<b>%s</b>: ", attr->name);
+ text = g_markup_escape_text (attr->name, -1);
+ g_string_append_printf (details, "<b>%s</b>: ", text);
+ g_free (text);
switch (attr->type) {
case GNOME_KEYRING_ATTRIBUTE_TYPE_STRING:
text = g_markup_escape_text (attr->value.string, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]