From a18c35046daee15e7ac5f85db290d54541a03e3c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 11 Nov 2025 08:17:12 +0100 Subject: 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 --- app/Controllers/authController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controllers/authController.php') 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); } -- cgit v1.2.3