From: Matteo Nastasi (mop) Date: Thu, 12 Nov 2015 07:12:05 +0000 (+0100) Subject: escaping PG SQL correctly X-Git-Tag: v5.3.0~56 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=fba998349f6e71d4305a933f0725a1cb1b7e24cc;p=brisk.git escaping PG SQL correctly --- 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) {