[Pkg-owncloud-commits] [owncloud] 24/62: Do not use digits in random index names

David Prévot taffit at moszumanska.debian.org
Tue Jun 23 23:39:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.5beta
in repository owncloud.

commit 28c6c2f4d46b52fa48a0034f1d1754437be4df9d
Author: Victor Dubiniuk <victor.dubiniuk at gmail.com>
Date:   Mon Jun 8 18:59:24 2015 +0300

    Do not use digits in random index names
---
 lib/private/db/migrator.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php
index f55b507..08457a2 100644
--- a/lib/private/db/migrator.php
+++ b/lib/private/db/migrator.php
@@ -151,7 +151,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());
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list