- Input class no longer tries to search for parameter in FILE or POST if it's not a postback.

This commit is contained in:
Simon Sessingø
2016-04-19 02:08:14 +02:00
parent eb3ddf2bf7
commit 6b8351f1b8
+5 -3
View File
@@ -55,17 +55,19 @@ class Input {
return $element; return $element;
} }
if(request()->getMethod() !== 'get') {
$element = $this->post->findFirst($index); $element = $this->post->findFirst($index);
if($element !== null) { if ($element !== null) {
return $element; return $element;
} }
$element = $this->file->findFirst($index); $element = $this->file->findFirst($index);
if ($element !== null) {
if($element !== null) {
return $element; return $element;
} }
}
return $default; return $default;
} }