From 7762a327c265097489bc47c374bd415a188317d4 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 13 Jul 2023 17:38:43 +0200 Subject: [PATCH 1/2] Extract mid and pid from GET Parameters instead of REQUEST --- dist/admin/html.open/lib/DInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/admin/html.open/lib/DInfo.php b/dist/admin/html.open/lib/DInfo.php index 8afdb826..7edd2a52 100644 --- a/dist/admin/html.open/lib/DInfo.php +++ b/dist/admin/html.open/lib/DInfo.php @@ -71,11 +71,11 @@ public function ShowDebugInfo() public function InitConf() { $has_pid = false; - $mid = UIBase::GrabGoodInput("request", 'm'); + $mid = UIBase::GrabGoodInput("get", 'm'); if ($mid != null) { $this->_mid = $mid; - $pid = UIBase::GrabGoodInput("request", 'p'); + $pid = UIBase::GrabGoodInput("get", 'p'); if ($pid != null) { $this->_pid = $pid; $has_pid = true; From a3ffd2fa84f6a16cb768623c0f80a904492931f5 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 14 Jul 2023 08:31:16 +0000 Subject: [PATCH 2/2] introduce custom merged get and post Input --- dist/admin/html.open/lib/DInfo.php | 4 ++-- dist/admin/html.open/view/UIBase.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/admin/html.open/lib/DInfo.php b/dist/admin/html.open/lib/DInfo.php index 7edd2a52..c495ec04 100644 --- a/dist/admin/html.open/lib/DInfo.php +++ b/dist/admin/html.open/lib/DInfo.php @@ -71,11 +71,11 @@ public function ShowDebugInfo() public function InitConf() { $has_pid = false; - $mid = UIBase::GrabGoodInput("get", 'm'); + $mid = UIBase::GrabGoodInput("get_post", 'm'); if ($mid != null) { $this->_mid = $mid; - $pid = UIBase::GrabGoodInput("get", 'p'); + $pid = UIBase::GrabGoodInput("get_post", 'p'); if ($pid != null) { $this->_pid = $pid; $has_pid = true; diff --git a/dist/admin/html.open/view/UIBase.php b/dist/admin/html.open/view/UIBase.php index 1c3a51bb..2925e590 100644 --- a/dist/admin/html.open/view/UIBase.php +++ b/dist/admin/html.open/view/UIBase.php @@ -302,6 +302,10 @@ public static function GrabInput($origin, $name, $type = '') break; case "POST": $temp = $_POST; break; + case "POST_GET": + case "GET_POST": + $temp = array_merge($_GET, $_POST); + break; case "COOKIE": $temp = $_COOKIE; break; case "FILE": $temp = $_FILES;