diff options
| author | 2017-02-16 14:27:45 +0100 | |
|---|---|---|
| committer | 2017-02-16 14:27:45 +0100 | |
| commit | 8d2b76334cd60356c85810bf4902124105d54ad4 (patch) | |
| tree | a303e6f209fd716972ca3421c4b817beec0cabfc /cli/do-install.php | |
| parent | 08857c679d700b982a1af21ce11c4b25e125e44a (diff) | |
Possibility to register user having a '-', a '_' or a '.' in username
Diffstat (limited to 'cli/do-install.php')
| -rwxr-xr-x | cli/do-install.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/do-install.php b/cli/do-install.php index 100d4947f..eb46c7e93 100755 --- a/cli/do-install.php +++ b/cli/do-install.php @@ -47,7 +47,8 @@ if ($requirements['all'] !== 'ok') { fail($message); } -if (!ctype_alnum($options['default_user'])) { +$aValid = array('-', '_', '.'); +if (!ctype_alnum(str_replace($aValid, '', $options['default_user']))) { fail('FreshRSS invalid default username (must be ASCII alphanumeric): ' . $options['default_user']); } |
