mirror of
https://github.com/webmin/webmin.git
synced 2026-10-26 05:00:51 +00:00
Fix to preserve PostgreSQL SQL file error handling
This commit is contained in:
@@ -904,7 +904,7 @@ if ($safe_file) {
|
||||
# Restrict psql commands while executing the user-supplied file.
|
||||
local $restrict_key = &generate_miniserv_websocket_token();
|
||||
local $cmd = "e_path($config{'psql'}).
|
||||
" -X -v ON_ERROR_STOP=1 -c ".
|
||||
" -X -c ".
|
||||
quotemeta("\\restrict $restrict_key").
|
||||
" -f "."e_path($file).
|
||||
&host_port_flags().
|
||||
|
||||
Reference in New Issue
Block a user