Ignore case when checking if a file is a PKT file

This commit is contained in:
Deon George 2023-01-23 11:09:23 +11:00
parent 3392092131
commit dac880b689

View File

@ -30,7 +30,7 @@ class File extends FileBase implements \Iterator
case NULL: case NULL:
case 'bin': 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; $this->canHandle = TRUE;
break; break;
}; };