From f1864a7dfa285e4075b1c3dba771065702dd6f57 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 22 Nov 2015 21:25:09 +0100 Subject: [PATCH] plugin file: deferred XMLUI now use security limit --- src/plugins/plugin_misc_file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/plugin_misc_file.py b/src/plugins/plugin_misc_file.py index 0186df2d..cadce68d 100644 --- a/src/plugins/plugin_misc_file.py +++ b/src/plugins/plugin_misc_file.py @@ -47,6 +47,7 @@ CONFIRM = D_(u'{peer} wants to send the file "{name}" to you:\n{desc}\n\nThe fil CONFIRM_TITLE = D_(u'Confirm file transfer') CONFIRM_OVERWRITE = D_(u'File {} already exists, are you sure you want to overwrite ?') CONFIRM_OVERWRITE_TITLE = D_(u'File exists') +SECURITY_LIMIT = 10 PROGRESS_ID_KEY = 'progress_id' @@ -322,6 +323,7 @@ class FilePlugin(object): 'meta_type': C.META_TYPE_OVERWRITE, 'meta_progress_id': file_data[PROGRESS_ID_KEY] }, + security_limit=SECURITY_LIMIT, profile=profile) exists_d.addCallback(check_overwrite) return exists_d @@ -369,6 +371,7 @@ class FilePlugin(object): 'meta_type': C.META_TYPE_FILE, 'meta_progress_id': file_data[PROGRESS_ID_KEY] }, + security_limit=SECURITY_LIMIT, profile=profile) d.addCallback(self._gotConfirmation, peer_jid, transfer_data, file_data, profile) return d