From 14549d972ea83e272c9b6d49dae7fb5dc40b5732 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 12 Jan 2021 22:11:20 -0700 Subject: [PATCH] Remove deprecated pg_escape_string --- resources/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index b7265a6b9c..daf5e4c4ff 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -51,7 +51,7 @@ } } if ($db_type == "pgsql") { - $string = pg_escape_string($string); + $string = str_replace("'","''",$string); } if ($db_type == "mysql") { if(function_exists('mysql_real_escape_string')){