From 7dedb80793e913b58b4ea0eca409f9fc8556035f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 2 Mar 2018 08:14:58 +0100 Subject: [PATCH] [http.core] Added legacy GET parameters to router's URL param --- build/http/core/HttpRequest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/http/core/HttpRequest.php b/build/http/core/HttpRequest.php index f2d919a..595a92c 100644 --- a/build/http/core/HttpRequest.php +++ b/build/http/core/HttpRequest.php @@ -47,7 +47,14 @@ /* [3] Define default datasets (GET, POST) =========================================================*/ + /* (1) Add to $_GET legacy GET parameters */ + parse_str(parse_url($this->uri)['query'], $legacy_get); + $_GET = array_merge($_GET, $legacy_get); + + /* (2) Store GET parameters */ $this->getdata = $_GET; + + /* (3) Store POST parameters */ $this->postdata = $_POST;