mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-09-13 22:19:49 -04:00
Missing checkUsername and const patten
https://github.com/FreshRSS/FreshRSS/pull/1423 https://github.com/YunoHost-Apps/freshrss_ynh/issues/27#issuecomment-279792363
This commit is contained in:
1 parent
2e871a0adf
commit
271a1fdc89
11 files changed
+17
-12
No files matched your search
@@ -26,7 +26,7 @@ class FreshRSS_javascript_Controller extends Minz_ActionController {
|
||||
header('Pragma: no-cache');
|
||||
|
||||
$user = isset($_GET['user']) ? $_GET['user'] : '';
|
||||
if (ctype_alnum($user)) {
|
||||
if (FreshRSS_user_Controller::checkUsername($user)) {
|
||||
try {
|
||||
$salt = FreshRSS_Context::$system_conf->salt;
|
||||
$conf = get_user_configuration($user);
|
||||
|
||||
Reference in new issue
Block a user