escape file name in file transfer accept dialog

This commit is contained in:
Yann Leboulanger 2009-03-20 21:05:45 +00:00
parent d2f1f20c1e
commit 1b34a125c0
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ _('Connection with peer cannot be established.'))
file requested by a contact''' file requested by a contact'''
if file_props is None or 'name' not in file_props: if file_props is None or 'name' not in file_props:
return 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: if 'size' in file_props:
sec_text += '\n\t' + _('Size: %s') % \ sec_text += '\n\t' + _('Size: %s') % \
helpers.convert_bytes(file_props['size']) helpers.convert_bytes(file_props['size'])