diff --git a/include/db/postgres.inc.php b/include/db/postgres.inc.php index ec32b3831..12ac0c335 100644 --- a/include/db/postgres.inc.php +++ b/include/db/postgres.inc.php @@ -89,7 +89,9 @@ function serendipity_db_reconnect() { * @return string output string */ function serendipity_db_escape_string($string) { - return pg_escape_string($string); + global $serendipity; + + return pg_escape_string($serendipity['dbConn'], $string); } /**