* Module Author: Chris Case
*
*/
+
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
$pathinfo = pathinfo($this->file->getName());
$filename = $pathinfo['filename'];
- $ext = $pathinfo['extension'];
+ if (!isset($pathinfo['extension'])) {
+ Logger::warning('extension isn\'t set.', ['filename' => $filename]);
+ }
+ $ext = defaults($pathinfo, 'extension', '');
if($this->allowedExtensions && !in_array(strtolower($ext), $this->allowedExtensions)){
$these = implode(', ', $this->allowedExtensions);