Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/6664'
Browse files Browse the repository at this point in the history
Close #6664
  • Loading branch information
weierophinney committed Sep 16, 2014
2 parents 04dd61b + 3275eb2 commit d062bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Validator/File/UploadFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function isValid($value)

switch ($error) {
case UPLOAD_ERR_OK:
if (empty($file) || false === stream_resolve_include_path($file)) {
if (empty($file) || false === is_file($file)) {
$this->error(self::FILE_NOT_FOUND);
} elseif (! is_uploaded_file($file)) {
$this->error(self::ATTACK);
Expand Down

0 comments on commit d062bd6

Please sign in to comment.