Ignore case when checking if a file is a PKT file
This commit is contained in:
parent
3392092131
commit
dac880b689
@ -30,7 +30,7 @@ class File extends FileBase implements \Iterator
|
||||
|
||||
case NULL:
|
||||
case 'bin':
|
||||
if ($this->getExtension() == 'pkt' || ($path instanceof UploadedFile && $path->getClientOriginalExtension() == 'pkt')) {
|
||||
if ((strcasecmp($this->getExtension(),'pkt') === 0) || ($path instanceof UploadedFile && (strcasecmp($path->getClientOriginalExtension(),'pkt') === 0))) {
|
||||
$this->canHandle = TRUE;
|
||||
break;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user