Skip to content

A free, self-hostable news aggregator…

Session fix when form + HTTP auth are used (#2286)

Alexandre Alapetitee84a90943ab1
diff --git a/app/Models/Auth.php b/app/Models/Auth.php
index 513a9cb2f..16a506f00 100644
--- a/app/Models/Auth.php
+++ b/app/Models/Auth.php
@@ -13,7 +13,7 @@ class FreshRSS_Auth {
* This method initializes authentication system.
*/
public static function init() {
- if (Minz_Session::param('REMOTE_USER', '') !== httpAuthUser()) {
+ if (isset($_SESSION['REMOTE_USER']) && $_SESSION['REMOTE_USER'] !== httpAuthUser()) {
//HTTP REMOTE_USER has changed
self::removeAccess();
}