From 9b494b93f6322a974d11fe667368eb4e073a0a67 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 15 Oct 2026 21:14:39 +0200 Subject: [PATCH] Fix PostgreSQL SQL argument quoting --- postgresql/postgresql-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql/postgresql-lib.pl b/postgresql/postgresql-lib.pl index 322f3563f..ff4f8f282 100755 --- a/postgresql/postgresql-lib.pl +++ b/postgresql/postgresql-lib.pl @@ -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);