Check section also in post.php if group has changed sections

This commit is contained in:
Retro_Guy 2021-04-01 23:47:24 -07:00
parent 5f531dc6da
commit 283e851d23
1 changed files with 8 additions and 1 deletions

View File

@ -53,9 +53,16 @@ if ((isset($post_server)) && ($post_server!=""))
if ((isset($post_port)) && ($post_port!=""))
$port=$post_port;
include "head.inc";
include $file_newsportal;
$findsection = get_section_by_group($_REQUEST["group"]);
if(trim($findsection) !== $config_name) {
$newurl = preg_replace("|/$config_name/|", "/$findsection/", $_SERVER['REQUEST_URI']);
header("Location: $newurl");
die();
}
include "head.inc";
global $synchro_user,$synchro_pass;
// check to which groups the user is allowed to post to