From 2962cd1456814813848772925c4962ffc48c92ef Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Tue, 9 Feb 2021 22:18:28 -0700 Subject: [PATCH] Fix anon posting bug allowing posting when disabled --- Rocksolid_Light/rocksolid/newsportal.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index dae530e..5d64b7d 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -1022,6 +1022,10 @@ function check_bbs_auth($username, $password) { } } + if(trim($username) == strtolower($CONFIG['anonusername']) && $CONFIG['anonuser'] != true) { + return FALSE; + } + if ($userFileHandle = @fopen($userFilename, 'r')) { $userFileInfo = fread($userFileHandle, filesize($userFilename));