Correct escaping

This commit is contained in:
eMerzh 2012-12-14 11:10:53 +01:00 committed by Morris Jobke
parent edc255421c
commit e33f68ecb6
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ class OC_Setup {
if(!$connection) {
// Try if we can't connect with the specified DB name
$e_dbname = addslashes($dbname);
$connection_string = "host='$e_host' dbname='$dbname' user='$e_user' password='$e_password'";
$connection_string = "host='$e_host' dbname='$e_dbname' user='$e_user' password='$e_password'";
$connection = @pg_connect($connection_string);
if(!$connection)