better GET params handling when the server is badly configured and missing the globel params
This commit is contained in:
parent
bdd90a680d
commit
bad5a1c3f2
@ -20,7 +20,13 @@ class Url
|
|||||||
$explode = explode('?', $decode);
|
$explode = explode('?', $decode);
|
||||||
$this->uri = $explode[0];
|
$this->uri = $explode[0];
|
||||||
|
|
||||||
$this->parameters = $_GET;
|
// deal with server config when missing the get params
|
||||||
|
if(empty($_GET)){
|
||||||
|
isset($explode[1]) ? parse_str($explode[1], $this->parameters):"";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$this->parameters=$_GET;
|
||||||
|
}
|
||||||
|
|
||||||
$this->uriStrlen = Text::length($this->uri);
|
$this->uriStrlen = Text::length($this->uri);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user