From 283e851d23852ded7749669fc84734e320c80dea Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 1 Apr 2021 23:47:24 -0700 Subject: [PATCH] Check section also in post.php if group has changed sections --- Rocksolid_Light/rocksolid/post.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index 67074d4..9ef1a4f 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -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