Browse Source
Exclude 0 as well from urls
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/258/head
Joas Schilling
9 years ago
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with
1 additions and
1 deletions
-
lib/Manager.php
|
|
|
@ -334,7 +334,7 @@ class Manager { |
|
|
|
* @return string |
|
|
|
*/ |
|
|
|
protected function getNewToken() { |
|
|
|
$chars = str_replace(['l', '1'], '', ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS); |
|
|
|
$chars = str_replace(['l', '0', '1'], '', ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_DIGITS); |
|
|
|
$entropy = (int) $this->config->getAppValue('spreed', 'token_entropy', 4); |
|
|
|
|
|
|
|
$query = $this->db->getQueryBuilder(); |
|
|
|
|