Skip to content

Commit

Permalink
Missing param default to fix renaming media in PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jan 9, 2022
1 parent a87fc9e commit d0878fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Helper/MediaHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static function checkFileExtension($extension, $component = 'com_media',
}

$allowable = array_map('trim', explode(',', $params->get('restrict_uploads_extensions', 'bmp,gif,jpg,jpeg,png,webp,ico,mp3,m4a,mp4a,ogg,mp4,mp4v,mpeg,mov,odg,odp,ods,odt,pdf,png,ppt,txt,xcf,xls,csv')));
$ignored = array_map('trim', explode(',', $params->get('ignore_extensions')));
$ignored = array_map('trim', explode(',', $params->get('ignore_extensions', '')));

if ($extension == '' || $extension == false || (!\in_array($extension, $allowable, true) && !\in_array($filetype, $ignored, true)))
{
Expand Down

0 comments on commit d0878fb

Please sign in to comment.