mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a warning when the user is using the import functionality, as importing data, imports executable code such as plugins as well
This commit is contained in:
parent
8e41e225e5
commit
706c3ba805
@ -253,6 +253,12 @@ class EximDialog(Dialog):
|
||||
path = choose_dir(self, 'choose-export-folder-for-import', _('Select folder with exported data'))
|
||||
if path is None:
|
||||
return
|
||||
if not question_dialog(self, _('Are you sure?'), _(
|
||||
'Importing calibre data means all libraries, settings, plugins, etc will be imported. This is'
|
||||
' a security risk, only proceed if the data you are importing was previously generated by you, using the calibre'
|
||||
' export functionality.'
|
||||
)):
|
||||
return
|
||||
try:
|
||||
self.importer = Importer(path)
|
||||
except Exception as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user