aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-02-25 12:39:08 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-02-25 12:39:08 +0100
commit271a1fdc8900a8b2c32675c22dce1cc458209de4 (patch)
tree10f4e575e3d907b637f60128d270ac9a7576ce46 /cli
parent2e871a0adf131f53dcf345ad2dda73bdf7c1a2c9 (diff)
Missing checkUsername and const patten
https://github.com/FreshRSS/FreshRSS/pull/1423 https://github.com/YunoHost-Apps/freshrss_ynh/issues/27#issuecomment-279792363
Diffstat (limited to 'cli')
-rwxr-xr-xcli/reconfigure.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/reconfigure.php b/cli/reconfigure.php
index 5294dd2df..da451b3ef 100755
--- a/cli/reconfigure.php
+++ b/cli/reconfigure.php
@@ -45,7 +45,7 @@ foreach ($dBparams as $dBparam) {
}
$config->db = $db;
-if (!ctype_alnum($config->default_user)) {
+if (!FreshRSS_user_Controller::checkUsername($config->default_user)) {
fail('FreshRSS invalid default username (must be ASCII alphanumeric): ' . $config->default_user);
}