summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-08 22:28:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-08 22:28:57 +0200
commit429bd7ce3772ffea312280feb3e4089f47681935 (patch)
treef117066df06bfb65fd90cb52ad4a08f3184d9e4f
parent2ae2da576f863c999eece414de3b18ba222e81cb (diff)
parentc7c6556187d89201ee4d6aef0d1d784ad97ccd09 (diff)
downloadnextcloud-server-429bd7ce3772ffea312280feb3e4089f47681935.tar.gz
nextcloud-server-429bd7ce3772ffea312280feb3e4089f47681935.zip
Merge pull request #16807 from owncloud/fix-16779
Do not use digits in random index names
-rw-r--r--lib/private/db/migrator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php
index 49b9032d5c8..fcfe5d96279 100644
--- a/lib/private/db/migrator.php
+++ b/lib/private/db/migrator.php
@@ -169,7 +169,7 @@ class Migrator {
$indexName = $index->getName();
} else {
// avoid conflicts in index names
- $indexName = $this->config->getSystemValue('dbtableprefix', 'oc_') . $this->random->generate(13, ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS);
+ $indexName = $this->config->getSystemValue('dbtableprefix', 'oc_') . $this->random->generate(13, ISecureRandom::CHAR_LOWER);
}
$newIndexes[] = new Index($indexName, $index->getColumns(), $index->isUnique(), $index->isPrimary());
}