Fix PostgreSQL SQL argument quoting

This commit is contained in:
Ilia Ross
2026-10-15 21:14:39 +02:00
parent 24cd92a061
commit 9b494b93f6

View File

@@ -405,7 +405,7 @@ else {
&host_port_flags().
(!&supports_pgpass() ? " -u" :
" -U ".quotemeta($postgres_login)).
" -c ".&quote_path($sql).
" -c ".quotemeta($sql).
" ".quotemeta($_[0]);
if ($postgres_sameunix && defined(getpwnam($postgres_login))) {
$cmd = &command_as_user($postgres_login, 0, $cmd);