Skip to content

Commit

Permalink
bugfix: pg_escape_string() in serendipity_db_escape_string() works again
Browse files Browse the repository at this point in the history
  • Loading branch information
Jari Turkia committed Oct 8, 2024
1 parent 3734df1 commit 1223840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/db/postgres.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 1223840

Please sign in to comment.