[Xfce4-commits] <midori:master> Escape title to be set on error pages
Christian Dywan
noreply at xfce.org
Thu Feb 17 19:56:01 CET 2011
Updating branch refs/heads/master
to f4875ceb7c0d1fc314c2e1242476a6bdeee9f940 (commit)
from af86a781f6178e77eba106b84c10b8cc4179603a (commit)
commit f4875ceb7c0d1fc314c2e1242476a6bdeee9f940
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Feb 17 19:38:11 2011 +0100
Escape title to be set on error pages
midori/midori-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index f76bb51..efa013b 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -1352,6 +1352,7 @@ midori_view_display_error (MidoriView* view,
#endif
gchar* res_root;
gchar* stock_root;
+ gchar* title_escaped;
gchar* result;
#if WEBKIT_CHECK_VERSION (1, 1, 14)
@@ -1364,14 +1365,16 @@ midori_view_display_error (MidoriView* view,
stock_root = g_strdup_printf ("http://localhost:%d/stock", port);
#endif
+ title_escaped = g_markup_escape_text (title, -1);
result = sokoke_replace_variables (template,
- "{title}", title,
+ "{title}", title_escaped,
"{message}", message,
"{description}", description,
"{tryagain}", try_again,
"{res}", res_root,
"{stock}", stock_root,
NULL);
+ g_free (title_escaped);
g_free (template);
midori_view_load_alternate_string (view,
More information about the Xfce4-commits
mailing list