[http.core] Added legacy GET parameters to router's URL param

This commit is contained in:
xdrm-brackets 2018-03-02 08:14:58 +01:00
parent c76dc3c5ee
commit 7dedb80793
1 changed files with 7 additions and 0 deletions

View File

@ -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;