[giggle] Fix: Giggle fails to display tags/branches with the & character
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] Fix: Giggle fails to display tags/branches with the & character
- Date: Fri, 23 Apr 2010 14:49:39 +0000 (UTC)
commit c4dcd6d4d4f994c733587e3656286d2339745b6e
Author: Javier Jardón <jjardon gnome org>
Date: Fri Apr 23 16:46:08 2010 +0200
Fix: Giggle fails to display tags/branches with the & character
Reported by Å?ukasz JernaÅ? here:
https://bugzilla.gnome.org/show_bug.cgi?id=616622
src/giggle-rev-list-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/giggle-rev-list-view.c b/src/giggle-rev-list-view.c
index 17b70d6..81131c2 100644
--- a/src/giggle-rev-list-view.c
+++ b/src/giggle-rev-list-view.c
@@ -464,6 +464,7 @@ revision_tooltip_add_refs (GString *str,
GList *list)
{
GiggleRef *ref;
+ gchar *escaped_string;
if (str->len > 0 && list)
g_string_append (str, "\n");
@@ -472,8 +473,10 @@ revision_tooltip_add_refs (GString *str,
ref = list->data;
list = list->next;
+ escaped_string = g_markup_escape_text (giggle_ref_get_name (ref), -1);
g_string_append_printf (str, "<b>%s</b>: %s", label,
- giggle_ref_get_name (ref));
+ escaped_string);
+ g_free (escaped_string);
if (list)
g_string_append (str, "\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]