mirror of
https://github.com/webmin/webmin.git
synced 2026-10-26 05:00:51 +00:00
Fix PostgreSQL SQL argument quoting
This commit is contained in:
@@ -405,7 +405,7 @@ else {
|
||||
&host_port_flags().
|
||||
(!&supports_pgpass() ? " -u" :
|
||||
" -U ".quotemeta($postgres_login)).
|
||||
" -c "."e_path($sql).
|
||||
" -c ".quotemeta($sql).
|
||||
" ".quotemeta($_[0]);
|
||||
if ($postgres_sameunix && defined(getpwnam($postgres_login))) {
|
||||
$cmd = &command_as_user($postgres_login, 0, $cmd);
|
||||
|
||||
Reference in New Issue
Block a user