Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Deal with null $files in request #15558

Merged
merged 2 commits into from
Sep 22, 2016
Merged

[5.3] Deal with null $files in request #15558

merged 2 commits into from
Sep 22, 2016

Conversation

themsaid
Copy link
Member

In Request::duplicate:

public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null)
{
    return parent::duplicate($query, $request, $attributes, $cookies, $this->filterFiles($files), $server);
}

Since files can be null we should skip the loop in that case to avoid Invalid argument supplied for foreach()

@themsaid themsaid changed the title Deal with null files in request [5.3] Deal with null files in request Sep 22, 2016
@themsaid themsaid changed the title [5.3] Deal with null files in request [5.3] Deal with null $files in request Sep 22, 2016
@taylorotwell taylorotwell merged commit 4532598 into laravel:5.3 Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants