diff options
| author | 2025-11-11 08:17:12 +0100 | |
|---|---|---|
| committer | 2025-11-11 08:17:12 +0100 | |
| commit | a18c35046daee15e7ac5f85db290d54541a03e3c (patch) | |
| tree | ec638cf7c93537a4f81b27216097d8509252eb81 /app/Controllers/authController.php | |
| parent | 5e622c60fa5c40793138807280319f7e84d00cc6 (diff) | |
Housekeeping lib_rss.php (#8193)
* Housekeeping lib_rss.php
`lib_rss.php` had become much too large, especially after https://github.com/FreshRSS/FreshRSS/pull/7924
Moved most functions to other places.
Mostly no change of code otherwise (see comments).
* Extension: composer run-script phpstan-third-party
Diffstat (limited to 'app/Controllers/authController.php')
| -rw-r--r-- | app/Controllers/authController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index 64526a884..61f4f5aaf 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -85,8 +85,8 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { 'http_auth' => Minz_Error::error(403, [ 'error' => [ _t('feedback.access.denied'), - ' [HTTP Remote-User=' . htmlspecialchars(httpAuthUser(false), ENT_NOQUOTES, 'UTF-8') . - ' ; Remote IP address=' . connectionRemoteAddress() . ']' + ' [HTTP Remote-User=' . htmlspecialchars(FreshRSS_http_Util::httpAuthUser(onlyTrusted: false), ENT_NOQUOTES, 'UTF-8') . + ' ; Remote IP address=' . Minz_Request::connectionRemoteAddress() . ']' ] ], false), 'none' => Minz_Error::error(404), // It should not happen! @@ -297,7 +297,7 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { Minz_Request::forward(['c' => 'index', 'a' => 'index'], true); } - if (max_registrations_reached()) { + if (FreshRSS_user_Controller::max_registrations_reached()) { Minz_Error::error(403); } |
