mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 22:20:05 -05:00
Fix menu closing issue on file manager. #5615
Fix file path issue in import/export servers caused due to vulnerability fix.
This commit is contained in:
1 parent
e0b670f229
commit
53ae657cc9
4 files changed
+13
-16
No files matched your search
@@ -127,13 +127,6 @@ def load_servers():
|
||||
except Exception as e:
|
||||
return bad_request(errormsg=str(e))
|
||||
|
||||
if storage_manager_path:
|
||||
# generate full path of file
|
||||
file_path = os.path.join(
|
||||
storage_manager_path,
|
||||
file_path.lstrip('/').lstrip('\\')
|
||||
)
|
||||
|
||||
if file_path and os.path.exists(file_path):
|
||||
try:
|
||||
with open(file_path, 'r') as j:
|
||||
|
||||
Reference in new issue
Block a user