From f3457a8f0c326303502afe937533a52caf6fb5f6 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 26 Apr 2006 07:25:59 +0000 Subject: [PATCH] escape filename (in case they contain _). Fixes #1897 --- 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 0862c422d..0fb515cf5 100644 --- a/src/filetransfers_window.py +++ b/src/filetransfers_window.py @@ -303,7 +303,8 @@ _('Connection with peer cannot be established.')) file requested by a contact''' if file_props is None or not file_props.has_key('name'): return - sec_text = '\t' + _('File: %s') % file_props['name'] + file_name = gtkgui_helpers.escape_for_pango_markup(file_props['name']) + sec_text = '\t' + _('File: %s') % file_name if file_props.has_key('size'): sec_text += '\n\t' + _('Size: %s') % \ helpers.convert_bytes(file_props['size'])