Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
697a85dd
Commit
697a85dd
authored
Jul 18, 2014
by
OmgDef
Committed by
Carsten Brandt
Jul 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for UPLOAD_ERR_NO_FILE in UploadedFile
fixes #4276, close #4358
parent
371af5c4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
UPGRADE.md
framework/UPGRADE.md
+0
-0
UploadedFile.php
framework/web/UploadedFile.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
697a85dd
...
...
@@ -66,6 +66,7 @@ Yii Framework 2 Change Log
-
Bug #4127:
`CaptchaValidator`
clientside error message wasn't formed properly (samdark)
-
Bug #4162: Fixed bug where schema name was not used in ’SHOW CREATE TABLE’ query in
`yii\db\mysql\Schema`
(stevekr)
-
Bug #4241:
`yii\widgets\Pjax`
was incorrectly setting container id (mitalcoi)
-
Bug #4276: Added check for UPLOAD_ERR_NO_FILE in
`yii\web\UploadedFile`
and return null if no file was uploaded (OmgDef)
-
Bug: Fixed inconsistent return of
`\yii\console\Application::runAction()`
(samdark)
-
Bug: URL encoding for the route parameter added to
`\yii\web\UrlManager`
(klimov-paul)
-
Bug: Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404 (qiangxue)
...
...
framework/UPGRADE.md
View file @
697a85dd
framework/web/UploadedFile.php
View file @
697a85dd
...
...
@@ -223,7 +223,7 @@ class UploadedFile extends Object
foreach
(
$names
as
$i
=>
$name
)
{
self
::
loadFilesRecursive
(
$key
.
'['
.
$i
.
']'
,
$name
,
$tempNames
[
$i
],
$types
[
$i
],
$sizes
[
$i
],
$errors
[
$i
]);
}
}
else
{
}
else
if
(
$errors
!==
UPLOAD_ERR_NO_FILE
)
{
self
::
$_files
[
$key
]
=
new
static
([
'name'
=>
$names
,
'tempName'
=>
$tempNames
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment