mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-25 12:38:37 -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
+1
-1
@@ -152,7 +152,7 @@ function authorizationToUser() {
|
||||
$headerAuthX = explode('/', $headerAuth, 2);
|
||||
if (count($headerAuthX) === 2) {
|
||||
$user = $headerAuthX[0];
|
||||
if (ctype_alnum($user)) {
|
||||
if (FreshRSS_user_Controller::checkUsername($user)) {
|
||||
FreshRSS_Context::$user_conf = get_user_configuration($user);
|
||||
if (FreshRSS_Context::$user_conf == null) {
|
||||
Minz_Log::warning('Invalid API user ' . $user . ': configuration cannot be found.');
|
||||
|
||||
Reference in new issue
Block a user