|
@@ -29,10 +29,10 @@ |
|
|
block discarded – undo |
|
29
|
29
|
* @return boolean|null |
|
30
|
30
|
*/ |
|
31
|
31
|
public function isValidMime() { |
|
32
|
|
- $extension = strtolower(pathinfo($this->tmpFile['name'], PATHINFO_EXTENSION)); |
|
|
32
|
+ $extension = strtolower(pathinfo($this->tmpFile['name'], PATHINFO_EXTENSION)); |
|
33
|
33
|
|
|
34
|
|
- // we can't check filenames without an extension or no temp file path, let them pass validation. |
|
35
|
|
- if(!$extension || !$this->tmpFile['tmp_name']) return true; |
|
|
34
|
+ // we can't check filenames without an extension or no temp file path, let them pass validation. |
|
|
35
|
+ if(!$extension || !$this->tmpFile['tmp_name']) return true; |
|
36
|
36
|
|
|
37
|
37
|
$expectedMimes = $this->getExpectedMimeTypes($this->tmpFile); |
|
38
|
38
|
if(empty($expectedMimes)) { |
Please login to merge, or discard this patch.