mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-14 10:13:52 -04:00
Possibility to register user having a '-', a '_' or a '.' in username
This commit is contained in:
@@ -20,7 +20,9 @@ function fail($message) {
|
||||
}
|
||||
|
||||
function cliInitUser($username) {
|
||||
if (!ctype_alnum($username)) {
|
||||
$aValid = array('-', '_', '.');
|
||||
|
||||
if (!ctype_alnum(str_replace($aValid, '', $username))) {
|
||||
fail('FreshRSS error: invalid username: ' . $username . "\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user