From 0ec94778975b2429c47ba718d76ee101c2f01e6c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 8 Dec 2004 19:51:30 +0000 Subject: [PATCH] * Fix string escaping with PostgreSQL --- includes/DatabasePostgreSQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/DatabasePostgreSQL.php b/includes/DatabasePostgreSQL.php index 35b6853771..c92a824648 100644 --- a/includes/DatabasePostgreSQL.php +++ b/includes/DatabasePostgreSQL.php @@ -255,7 +255,7 @@ class DatabasePgsql extends Database { } function strencode( $s ) { - return addslashes( $s ); + return pg_escape_string( $s ); } /** -- 2.20.1