From 35465ca90c9a7e90e0836fd9def62b0e7a6bf81c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 22 Apr 2019 19:57:11 -0300 Subject: [PATCH] solve code review Signed-off-by: Vitor Mattos --- lib/private/Setup/PostgreSQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Setup/PostgreSQL.php b/lib/private/Setup/PostgreSQL.php index 9bd4e57f60..6d1b5ca292 100644 --- a/lib/private/Setup/PostgreSQL.php +++ b/lib/private/Setup/PostgreSQL.php @@ -155,7 +155,7 @@ class PostgreSQL extends AbstractDatabase { $query = $connection->prepare("CREATE USER " . addslashes($this->dbUser) . " CREATEDB PASSWORD '" . addslashes($this->dbPassword) . "'"); $query->execute(); if ($this->databaseExists($connection)) { - $query = $connection->prepare('GRANT CONNECT ON DATABASE ' . $this->dbName . ' TO '.addslashes($this->dbUser)); + $query = $connection->prepare('GRANT CONNECT ON DATABASE ' . addslashes($this->dbName) . ' TO '.addslashes($this->dbUser)); $query->execute(); } } catch (DatabaseException $e) {