summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-19 16:40:18 +0200
committerGitHub <noreply@github.com>2017-07-19 16:40:18 +0200
commit3ff3c338c93c9d308f8160e28af08f3c59e9dbcc (patch)
tree8a4fb3c9122832f16feb3fc21592fefc7c421c73 /apps/dav
parent49c622fcbafe039c44d95595edfdda8a0cf7e042 (diff)
parent984933e5866c280eee34a8c2e16b0edcc94ac4d0 (diff)
downloadnextcloud-server-3ff3c338c93c9d308f8160e28af08f3c59e9dbcc.tar.gz
nextcloud-server-3ff3c338c93c9d308f8160e28af08f3c59e9dbcc.zip
Merge pull request #5734 from nextcloud/only-readable-chars-in-share-tokens
Only use readable chars in Share Tokens
Diffstat (limited to 'apps/dav')
-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()),