From cb092a25d65d12a918232e4f10427cada9e27517 Mon Sep 17 00:00:00 2001 From: "douglas.strappasson" Date: Fri, 18 Aug 2023 09:28:21 -0400 Subject: [PATCH] ajuste na funcao QuotedStr(), para pegar conexao com banco --- include/util/util.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/util/util.php b/include/util/util.php index d4c7766..18880f2 100755 --- a/include/util/util.php +++ b/include/util/util.php @@ -343,7 +343,9 @@ function soTexto($str) { } function QuotedStr($str) { - return sprintf("'%s'", trim($str)); + include_once('bd.php'); + $dbcon = pg_connect(GetConectString()); + return sprintf("'%s'", pg_escape_string($dbcon, trim($str))); } function FormataFone($numero) {