From d84234da13c8349ed7a1a398a4d64ed9c6a28a61 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 9 Dec 2016 16:41:01 +0100 Subject: [PATCH] Lower the role name before using it Signed-off-by: Joas Schilling --- 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 85755ea4218..22cafb18528 100644 --- a/lib/private/Setup/PostgreSQL.php +++ b/lib/private/Setup/PostgreSQL.php @@ -58,7 +58,7 @@ class PostgreSQL extends AbstractDatabase { //use the admin login data for the new database user //add prefix to the postgresql user name to prevent collisions - $this->dbUser='oc_'.$username; + $this->dbUser='oc_'.strtolower($username); //create a new password so we don't need to store the admin config in the config file $this->dbPassword = \OC::$server->getSecureRandom()->generate(30, \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_DIGITS);