From c4c512457bfaa9524c2681c04be3ee133b790fc4 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 17 Dec 2023 05:55:13 -0700 Subject: [PATCH] Remove style.css from list of themes in user config. --- Rocksolid_Light/spoolnews/user.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/spoolnews/user.php b/Rocksolid_Light/spoolnews/user.php index 91da8af..3e1cf61 100644 --- a/Rocksolid_Light/spoolnews/user.php +++ b/Rocksolid_Light/spoolnews/user.php @@ -57,7 +57,8 @@ if (! isset($_POST['password'])) { if (! isset($_COOKIE['mail_auth'])) { $_COOKIE['mail_auth'] = null; } -if (((get_user_mail_auth_data($_COOKIE['mail_name'])) && password_verify($_POST['username'] . $keys[0] . get_user_config($_POST['username'], 'encryptionkey'), $_COOKIE['mail_auth'])) || (password_verify($_POST['username'] . $keys[1] . get_user_config($_POST['username'], 'encryptionkey'), $_COOKIE['mail_auth']))) { +if ((password_verify($_POST['username'] . $keys[0] . get_user_config($_POST['username'], 'encryptionkey'), $_COOKIE['mail_auth'])) || (password_verify($_POST['username'] . $keys[1] . get_user_config($_POST['username'], 'encryptionkey'), $_COOKIE['mail_auth']))) { +// if (((get_user_mail_auth_data($_COOKIE['mail_name'])) && password_verify($_POST['username'] . $keys[0] . get_user_config($_POST['username'], 'encryptionkey'), $_COOKIE['mail_auth'])) || (password_verify($_POST['username'] . $keys[1] . get_user_config($_POST['username'], 'encryptionkey'), $_COOKIE['mail_auth']))) { $logged_in = true; } else { if (check_bbs_auth($_POST['username'], $_POST['password'])) { @@ -211,7 +212,7 @@ $themedir = $rootdir . '/common/themes'; if (is_dir($themedir)) { if ($theme_list = opendir($themedir)) { while (($theme_dir = readdir($theme_list)) !== false) { - if ($theme_dir == '.' || $theme_dir == '..') { + if ($theme_dir == '.' || $theme_dir == '..' || !is_dir($themedir.'/'.$theme_dir)) { continue; } $themes[] = $theme_dir;