From: Brion Vibber Date: Wed, 8 Dec 2004 19:51:30 +0000 (+0000) Subject: * Fix string escaping with PostgreSQL X-Git-Tag: 1.5.0alpha1~1123 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=0ec94778975b2429c47ba718d76ee101c2f01e6c;p=lhc%2Fweb%2Fwiklou.git * Fix string escaping with PostgreSQL --- 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 ); } /**