Skip to content
Snippets Groups Projects
Commit 1b34a125 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

escape file name in file transfer accept dialog

parent d2f1f20c
No related branches found
No related tags found
No related merge requests found
......@@ -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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment