Skip to content

Commit

Permalink
[5.4] Modify redirect with input to return empty if given empty array (
Browse files Browse the repository at this point in the history
…#17979)

* Modify redirect with input to return empty if given empty array

* Update RedirectResponse.php
  • Loading branch information
themsaid authored and taylorotwell committed Feb 17, 2017
1 parent c741786 commit 62f10bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/RedirectResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function withCookies(array $cookies)
public function withInput(array $input = null)
{
$this->session->flashInput($this->removeFilesFromInput(
$input ?: $this->request->input()
! is_null($input) ? $input : $this->request->input()
));

return $this;
Expand Down

0 comments on commit 62f10bb

Please sign in to comment.