Fix issue where a group in Newsgroups header exists in spoolnews/groups.txt.

This commit is contained in:
Retro_Guy 2024-02-24 20:33:14 -07:00
parent 6ff39dcca3
commit 1cc18961d9
1 changed files with 3 additions and 11 deletions

View File

@ -93,12 +93,8 @@ if (disable_page_by_user_agent($client_device, "bot", "Post")) {
global $synchro_user, $synchro_pass; global $synchro_user, $synchro_pass;
// check to which groups the user is allowed to post to // check to which groups the user is allowed to post to
$thisgroup = _rawurldecode($_REQUEST['group']); $thisgroup = _rawurldecode($_REQUEST['group']);
if ($testgroup) { $newsgroups = $thisgroup;
$newsgroups = testgroups($thisgroup); if ($_REQUEST['returngroup']) {
} else {
$newsgroups = $thisgroup;
}
if($_REQUEST['returngroup']) {
$returngroup = $_REQUEST['returngroup']; $returngroup = $_REQUEST['returngroup'];
} else { } else {
$returngroup = $thisgroup; $returngroup = $thisgroup;
@ -331,11 +327,7 @@ if ($type == "reply") {
if (isset($head->followup) && ($head->followup != "")) { if (isset($head->followup) && ($head->followup != "")) {
$newsgroups = $head->followup; $newsgroups = $head->followup;
} else { } else {
if ($testgroup) { $newsgroups = $head->newsgroups;
$newsgroups = testgroups($head->newsgroups);
} else {
$newsgroups = $head->newsgroups;
}
} }
splitSubject($subject); splitSubject($subject);
$subject = "Re: " . $subject; $subject = "Re: " . $subject;