Skip to content

Commit

Permalink
Merge pull request #6 from werph/captFileExt-Fix
Browse files Browse the repository at this point in the history
Update DcaFilesListener.php
  • Loading branch information
Tastaturberuf authored Feb 9, 2022
2 parents e7165ac + 50f8e7f commit 8abb9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/DcaFilesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function onLoadCallback(DataContainer $dc = null): void
// render when valid image type
if ( null !== $dc->id )
{
$fileExtension = pathinfo((string) $dc->id)['extension'];
$fileExtension = \strtolower(pathinfo((string) $dc->id)['extension']);

if ( in_array($fileExtension, $this->validImageExtensions) )
{
Expand Down

0 comments on commit 8abb9ee

Please sign in to comment.