diff options
| author | 2017-02-16 14:27:45 +0100 | |
|---|---|---|
| committer | 2017-02-16 14:27:45 +0100 | |
| commit | 8d2b76334cd60356c85810bf4902124105d54ad4 (patch) | |
| tree | a303e6f209fd716972ca3421c4b817beec0cabfc /cli/delete-user.php | |
| parent | 08857c679d700b982a1af21ce11c4b25e125e44a (diff) | |
Possibility to register user having a '-', a '_' or a '.' in username
Diffstat (limited to 'cli/delete-user.php')
| -rwxr-xr-x | cli/delete-user.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/delete-user.php b/cli/delete-user.php index 6f0e86e17..82605fb27 100755 --- a/cli/delete-user.php +++ b/cli/delete-user.php @@ -9,8 +9,9 @@ $options = getopt('', array( if (empty($options['user'])) { fail('Usage: ' . basename(__FILE__) . " --user username"); } +$aValid = array('-', '_', '.'); $username = $options['user']; -if (!ctype_alnum($username)) { +if (!ctype_alnum(str_replace($aValid, '', $username))) { fail('FreshRSS error: invalid username “' . $username . '”'); } |
