From: eMerzh Date: Fri, 14 Dec 2012 10:10:53 +0000 (+0100) Subject: Correct escaping X-Git-Tag: v6.0.0alpha2~633^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e33f68ecb6574d0d4675f5989283b08355f9e64c;p=nextcloud-server.git Correct escaping --- diff --git a/lib/setup.php b/lib/setup.php index 0db565c6a66..d7ceb36ae95 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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)