From 1728a22754b9d54b613c40b0175b0faa916ee6e6 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 10 Apr 2024 07:07:58 -0700 Subject: [PATCH] Restrict Message-ID search to section or group when using Search button (not form in header). --- Rocksolid_Light/rocksolid/search.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index df8934c..1e3b21e 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -381,15 +381,14 @@ function get_header_search($group, $terms) GLOBAL $CONFIG, $config_name, $spooldir, $snippet_size; $terms = preg_replace('/\%/', '\%', $terms); $searchterms = "%" . $terms . "%"; - if (isset($group) && $_POST['searchpoint'] != 'msgid') { + + if (isset($group)) { $grouplist[0] = $group; - } elseif ($_POST['searchpoint'] != 'msgid') { + } else { $local_groupfile = $spooldir . "/" . $config_name . "/local_groups.txt"; $grouplist = file($local_groupfile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); - } else { - $local_groupfile = $spooldir . "/spoolnews/groups.txt"; - $grouplist = file($local_groupfile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); } + # Prepare search database $database = $spooldir . '/articles-overview.db3'; $table = 'overview';