mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 22:22:16 +00:00
- Input class no longer tries to search for parameter in FILE or POST if it's not a postback.
This commit is contained in:
@@ -55,16 +55,18 @@ class Input {
|
|||||||
return $element;
|
return $element;
|
||||||
}
|
}
|
||||||
|
|
||||||
$element = $this->post->findFirst($index);
|
if(request()->getMethod() !== 'get') {
|
||||||
|
|
||||||
if($element !== null) {
|
$element = $this->post->findFirst($index);
|
||||||
return $element;
|
|
||||||
}
|
|
||||||
|
|
||||||
$element = $this->file->findFirst($index);
|
if ($element !== null) {
|
||||||
|
return $element;
|
||||||
|
}
|
||||||
|
|
||||||
if($element !== null) {
|
$element = $this->file->findFirst($index);
|
||||||
return $element;
|
if ($element !== null) {
|
||||||
|
return $element;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $default;
|
return $default;
|
||||||
|
|||||||
Reference in New Issue
Block a user