aboutsummaryrefslogtreecommitdiff
path: root/cli/_cli.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/_cli.php')
-rw-r--r--cli/_cli.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/_cli.php b/cli/_cli.php
index 7d1a7c6b2..885199659 100644
--- a/cli/_cli.php
+++ b/cli/_cli.php
@@ -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");
}