mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix failing import servers CLI due to vulnerability fix. #5751
This commit is contained in:
parent
10c6a4f8dc
commit
22cc658dca
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user