aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
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 /apps/dav/lib/CalDAV
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 'apps/dav/lib/CalDAV')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 7fe18cd8656..0193d3c2aae 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -1925,7 +1925,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
public function setPublishStatus($value, $calendar) {
$query = $this->db->getQueryBuilder();
if ($value) {
- $publicUri = $this->random->generate(16, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_DIGITS);
+ $publicUri = $this->random->generate(16, ISecureRandom::CHAR_HUMAN_READABLE);
$query->insert('dav_shares')
->values([
'principaluri' => $query->createNamedParameter($calendar->getPrincipalURI()),