diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-14 14:03:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-18 15:44:34 +0200 |
commit | 984933e5866c280eee34a8c2e16b0edcc94ac4d0 (patch) | |
tree | 4b125f1a12da36369b21d69aac253e684bb641e6 /lib/private/Share/Share.php | |
parent | 4153e1de795d0977756583e5845f849662ed6528 (diff) | |
download | nextcloud-server-984933e5866c280eee34a8c2e16b0edcc94ac4d0.tar.gz nextcloud-server-984933e5866c280eee34a8c2e16b0edcc94ac4d0.zip |
Only use readable chars in Share Tokens
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share/Share.php')
-rw-r--r-- | lib/private/Share/Share.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index dc96d856ba6..8938c6f3066 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -913,8 +913,7 @@ class Share extends Constants { $token = $oldToken; } else { $token = \OC::$server->getSecureRandom()->generate(self::TOKEN_LENGTH, - \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_UPPER. - \OCP\Security\ISecureRandom::CHAR_DIGITS + \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE ); } $result = self::put($itemType, $itemSource, $shareType, $shareWith, $uidOwner, $permissions, |