]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct escaping
authoreMerzh <brice@bmaron.net>
Fri, 14 Dec 2012 10:10:53 +0000 (11:10 +0100)
committerMorris Jobke <morris.jobke@gmail.com>
Wed, 12 Jun 2013 12:36:28 +0000 (14:36 +0200)
lib/setup.php

index 0db565c6a66ba81ec68a816af0d22cc6963f001f..d7ceb36ae95e61bf65b28b2f0d55e3a150dee420 100644 (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)