From fba998349f6e71d4305a933f0725a1cb1b7e24cc Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 12 Nov 2015 08:12:05 +0100 Subject: [PATCH] escaping PG SQL correctly --- web/Obj/dbase_pgsql.phh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/Obj/dbase_pgsql.phh b/web/Obj/dbase_pgsql.phh index 4790e8b..f4202c6 100644 --- a/web/Obj/dbase_pgsql.phh +++ b/web/Obj/dbase_pgsql.phh @@ -25,7 +25,7 @@ require_once("${G_base}Obj/dbase_base.phh"); $escsql_from = array( "\\", "'" ); -$escsql_to = array( "\\\\", "\\'" ); +$escsql_to = array( "\\\\", "''" ); function escsql($s) { -- 2.17.1