[Xfce4-commits] [apps/xfce4-terminal] 01/01: Escape uri string before providing it to error dialog
noreply at xfce.org
noreply at xfce.org
Tue Jul 19 17:06:08 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 072bd43de4324b4ec83ad5da1ed48b7bcffbb06a
Author: Igor <f2404 at yandex.ru>
Date: Tue Jul 19 18:06:02 2016 +0300
Escape uri string before providing it to error dialog
---
terminal/terminal-widget.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index 13a6678..a372994 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -696,6 +696,8 @@ terminal_widget_open_uri (TerminalWidget *widget,
screen = gtk_widget_get_screen (GTK_WIDGET (widget));
if (!gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error))
{
+ /* escape ampersand symbols, etc. */
+ uri = g_markup_escape_text (uri, -1);
/* tell the user that we were unable to open the responsible application */
xfce_dialog_show_error (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (widget))),
error, _("Failed to open the URL '%s'"), uri);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list