diff options
| author | 2017-02-16 18:54:59 +0100 | |
|---|---|---|
| committer | 2017-02-16 18:54:59 +0100 | |
| commit | 4eeae5171b885b6dda392f5dd68d6dd78a0c7858 (patch) | |
| tree | f4aebf0654c44838c54fdbb9ec7117f617008b89 /cli/do-install.php | |
| parent | 8d2b76334cd60356c85810bf4902124105d54ad4 (diff) | |
use function with preg_match to check username
Diffstat (limited to 'cli/do-install.php')
| -rwxr-xr-x | cli/do-install.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/do-install.php b/cli/do-install.php index eb46c7e93..064a64ab2 100755 --- a/cli/do-install.php +++ b/cli/do-install.php @@ -47,8 +47,7 @@ if ($requirements['all'] !== 'ok') { fail($message); } -$aValid = array('-', '_', '.'); -if (!ctype_alnum(str_replace($aValid, '', $options['default_user']))) { +if (!FreshRSS_user_Controller::checkUsername($options['default_user'])) { fail('FreshRSS invalid default username (must be ASCII alphanumeric): ' . $options['default_user']); } |
