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 /apps/sharebymail/lib | |
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 'apps/sharebymail/lib')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index f4db83ea3cf..a17c34da5db 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -541,8 +541,7 @@ class ShareByMailProvider implements IShareProvider { * @return string */ protected function generateToken($size = 15) { - $token = $this->secureRandom->generate( - $size, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_DIGITS); + $token = $this->secureRandom->generate($size, ISecureRandom::CHAR_HUMAN_READABLE); return $token; } |