diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-02 21:33:29 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-02 21:33:35 +0200 |
commit | e50abdd35597d0d3431a481260646224642b313b (patch) | |
tree | 5fa8db6f464c0f6bbd8fbe912108e7894ea327a4 /lib | |
parent | 1b920fb536fb7dc112623c38c0a5c7cba7124bce (diff) | |
download | nextcloud-server-e50abdd35597d0d3431a481260646224642b313b.tar.gz nextcloud-server-e50abdd35597d0d3431a481260646224642b313b.zip |
limit the length of the mysql username during setup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php index 41cfa1750ab..f295d69562e 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -99,7 +99,7 @@ class OC_Setup { //use the admin login data for the new database user //add prefix to the mysql user name to prevent collissions - $dbusername='oc_mysql_'.$username; + $dbusername=substr('oc_mysql_'.$username,0,16); //hash the password so we don't need to store the admin config in the config file $dbpassword=md5(time().$password); |