Fix failing import servers CLI due to vulnerability fix. #5751

This commit is contained in:
Aditya Toshniwal 2023-01-18 13:19:21 +05:30 committed by GitHub
parent 10c6a4f8dc
commit 22cc658dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -574,8 +574,10 @@ def load_database_servers(input_file, selected_servers,
# generate full path of file
try:
file_path = filename_with_file_manager_path(
unquote(input_file), skip_permission_check=from_setup)
if from_setup:
file_path = unquote(input_file)
else:
file_path = filename_with_file_manager_path(unquote(input_file))
except Exception as e:
return _handle_error(str(e), from_setup)