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;
// check to which groups the user is allowed to post to
$thisgroup = _rawurldecode($_REQUEST['group']);
if ($testgroup) {
$newsgroups = testgroups($thisgroup);
} else {
$newsgroups = $thisgroup;
}
if($_REQUEST['returngroup']) {
$newsgroups = $thisgroup;
if ($_REQUEST['returngroup']) {
$returngroup = $_REQUEST['returngroup'];
} else {
$returngroup = $thisgroup;
@ -331,11 +327,7 @@ if ($type == "reply") {
if (isset($head->followup) && ($head->followup != "")) {
$newsgroups = $head->followup;
} else {
if ($testgroup) {
$newsgroups = testgroups($head->newsgroups);
} else {
$newsgroups = $head->newsgroups;
}
$newsgroups = $head->newsgroups;
}
splitSubject($subject);
$subject = "Re: " . $subject;