From 1b34a125c0db4a587a343168e44ca7ab30244066 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 20 Mar 2009 21:05:45 +0000 Subject: [PATCH] escape file name in file transfer accept dialog --- src/filetransfers_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py index 1584860e5..32d07ac0f 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -308,7 +308,8 @@ _('Connection with peer cannot be established.')) file requested by a contact''' if file_props is None or 'name' not in file_props: return - sec_text = '\t' + _('File: %s') % file_props['name'] + sec_text = '\t' + _('File: %s') % gobject.markup_escape_text( + file_props['name']) if 'size' in file_props: sec_text += '\n\t' + _('Size: %s') % \ helpers.convert_bytes(file_props['size'])