Remove deprecated pg_escape_string

This commit is contained in:
FusionPBX
2021-01-12 22:11:20 -07:00
committed by GitHub
parent 4256bd5081
commit 14549d972e
+1 -1
View File
@@ -51,7 +51,7 @@
} }
} }
if ($db_type == "pgsql") { if ($db_type == "pgsql") {
$string = pg_escape_string($string); $string = str_replace("'","''",$string);
} }
if ($db_type == "mysql") { if ($db_type == "mysql") {
if(function_exists('mysql_real_escape_string')){ if(function_exists('mysql_real_escape_string')){