aboutsummaryrefslogtreecommitdiff
path: root/app/install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2017-07-24 08:52:11 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2017-07-24 08:52:11 +0200
commit1ac33e02bd8298d7ff700be90fea0ecd5e2eec52 (patch)
treef545ff2e05026ef919a7e6a361bee70380a652e5 /app/install.php
parent46c31a75d746773c223c29c78211723170104189 (diff)
parente4f2784313753bca86487be03d487d5a1523927e (diff)
Merge branch 'FreshRSS/dev' into EasyRSS-PSQL-timestamp
Diffstat (limited to 'app/install.php')
-rw-r--r--app/install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/install.php b/app/install.php
index 9e474ca73..cd276bb7b 100644
--- a/app/install.php
+++ b/app/install.php
@@ -124,7 +124,7 @@ function saveStep2() {
$_SESSION['title'] = $system_default_config->title;
$_SESSION['old_entries'] = param('old_entries', $user_default_config->old_entries);
$_SESSION['auth_type'] = param('auth_type', 'form');
- $_SESSION['default_user'] = substr(preg_replace('/[^a-zA-Z0-9]/', '', param('default_user', '')), 0, 16);
+ $_SESSION['default_user'] = substr(preg_replace('/[^0-9a-zA-Z_]/', '', param('default_user', '')), 0, 38);
$password_plain = param('passwordPlain', false);
if ($password_plain !== false && cryptAvailable()) {
@@ -631,7 +631,7 @@ function printStep3() {
<div class="form-group">
<label class="group-name" for="user"><?php echo _t('install.bdd.username'); ?></label>
<div class="group-controls">
- <input type="text" id="user" name="user" maxlength="16" pattern="[0-9A-Za-z_.-]{1,16}" value="<?php echo isset($_SESSION['bd_user']) ? $_SESSION['bd_user'] : ''; ?>" tabindex="3" />
+ <input type="text" id="user" name="user" maxlength="64" pattern="[0-9A-Za-z_.-]{1,64}" value="<?php echo isset($_SESSION['bd_user']) ? $_SESSION['bd_user'] : ''; ?>" tabindex="3" />
</div>
</div>