1) Disable the PSQL feature entirely in server mode by default.

2) Remove the code that attempts to filter out commands.

refs #2341
This commit is contained in:
Nikhil Mohite
2021-06-14 20:53:11 +05:30
committed by Akshay Joshi
parent c2ed799113
commit 2549688bdf
4 changed files with 9 additions and 121 deletions

View File

@@ -54,7 +54,6 @@ define('pgadmin.browser.utils',
/* GET PSQL Tool related config */
pgAdmin['enable_psql'] = '{{enable_psql}}' == 'True';
pgAdmin['allow_psql_shell_commands'] = '{{ current_app.config.get('ALLOW_PSQL_SHELL_COMMANDS') }}' == 'True';
pgAdmin['platform'] = '{{platform}}';
pgAdmin['qt_default_placeholder'] = '{{qt_default_placeholder}}'