Escape title to be set on error pages
This commit is contained in:
parent
af86a781f6
commit
f4875ceb7c
1 changed files with 4 additions and 1 deletions
|
@ -1352,6 +1352,7 @@ midori_view_display_error (MidoriView* view,
|
||||||
#endif
|
#endif
|
||||||
gchar* res_root;
|
gchar* res_root;
|
||||||
gchar* stock_root;
|
gchar* stock_root;
|
||||||
|
gchar* title_escaped;
|
||||||
gchar* result;
|
gchar* result;
|
||||||
|
|
||||||
#if WEBKIT_CHECK_VERSION (1, 1, 14)
|
#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);
|
stock_root = g_strdup_printf ("http://localhost:%d/stock", port);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
title_escaped = g_markup_escape_text (title, -1);
|
||||||
result = sokoke_replace_variables (template,
|
result = sokoke_replace_variables (template,
|
||||||
"{title}", title,
|
"{title}", title_escaped,
|
||||||
"{message}", message,
|
"{message}", message,
|
||||||
"{description}", description,
|
"{description}", description,
|
||||||
"{tryagain}", try_again,
|
"{tryagain}", try_again,
|
||||||
"{res}", res_root,
|
"{res}", res_root,
|
||||||
"{stock}", stock_root,
|
"{stock}", stock_root,
|
||||||
NULL);
|
NULL);
|
||||||
|
g_free (title_escaped);
|
||||||
g_free (template);
|
g_free (template);
|
||||||
|
|
||||||
midori_view_load_alternate_string (view,
|
midori_view_load_alternate_string (view,
|
||||||
|
|
Loading…
Reference in a new issue