aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-22 21:24:33 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-22 21:29:03 +0200
commit1565d82b81ee1f6960033a057260c884036e1159 (patch)
treefba07f61ff26624486d2589de893305ffba8519b /lib/private/util.php
parent3c5ac2112257731bb89a16e040563e1dddcef689 (diff)
downloadnextcloud-server-1565d82b81ee1f6960033a057260c884036e1159.tar.gz
nextcloud-server-1565d82b81ee1f6960033a057260c884036e1159.zip
Use only lower-case letters
Fixes https://github.com/owncloud/core/issues/11239
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-xlib/private/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index c5483c1654b..e1b315b1b0e 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -879,7 +879,7 @@ class OC_Util {
$id = OC_Config::getValue('instanceid', null);
if (is_null($id)) {
// We need to guarantee at least one letter in instanceid so it can be used as the session_name
- $id = 'oc' . \OC::$server->getSecureRandom()->getLowStrengthGenerator()->generate(10);
+ $id = 'oc' . \OC::$server->getSecureRandom()->getLowStrengthGenerator()->generate(10, \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_DIGITS);
OC_Config::$object->setValue('instanceid', $id);
}
return $id;