Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 6, 2017
1 parent e19b54c commit 90a8faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ protected function shouldBlockPhpUpload($value, $parameters)
}

return ($value instanceof UploadedFile)
? strtolower($value->getClientOriginalExtension()) === 'php'
: strtolower($value->getExtension()) === 'php';
? trim(strtolower($value->getClientOriginalExtension())) === 'php'
: trim(strtolower($value->getExtension())) === 'php';
}

/**
Expand Down

0 comments on commit 90a8faf

Please sign in to comment.