summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-14 14:03:25 +0200
committerJoas Schilling <coding@schilljs.com>2017-07-18 15:44:34 +0200
commit984933e5866c280eee34a8c2e16b0edcc94ac4d0 (patch)
tree4b125f1a12da36369b21d69aac253e684bb641e6 /lib/private/Share20
parent4153e1de795d0977756583e5845f849662ed6528 (diff)
downloadnextcloud-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/Share20')
-rw-r--r--lib/private/Share20/Manager.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 7c39733ce2a..03c900d36c6 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -581,9 +581,7 @@ class Manager implements IManager {
$share->setToken(
$this->secureRandom->generate(
\OC\Share\Constants::TOKEN_LENGTH,
- \OCP\Security\ISecureRandom::CHAR_LOWER.
- \OCP\Security\ISecureRandom::CHAR_UPPER.
- \OCP\Security\ISecureRandom::CHAR_DIGITS
+ \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE
)
);
@@ -601,9 +599,7 @@ class Manager implements IManager {
$share->setToken(
$this->secureRandom->generate(
\OC\Share\Constants::TOKEN_LENGTH,
- \OCP\Security\ISecureRandom::CHAR_LOWER.
- \OCP\Security\ISecureRandom::CHAR_UPPER.
- \OCP\Security\ISecureRandom::CHAR_DIGITS
+ \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE
)
);
}