- 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
+3 -1
View File
@@ -55,6 +55,8 @@ 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) {
@@ -62,10 +64,10 @@ class Input {
} }
$element = $this->file->findFirst($index); $element = $this->file->findFirst($index);
if ($element !== null) { if ($element !== null) {
return $element; return $element;
} }
}
return $default; return $default;
} }