CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12539] Module FilePicker 1.0.5 files corrections

avatar
Created By: Philippe Thomas (filto)
Date Submitted: Mon Apr 18 22:14:35 -0400 2022

Assigned To:
Version: None
CMSMS Version: 2.2.16
Severity: Minor
Resolution: Fixed
State: Open
Summary:
Module FilePicker 1.0.5 files corrections
Detailed Description:
modules/FilePicker/lib/class.Profile.php

----------
L141 in function is_filename_acceptable :  return always false; cause
is_filename_acceptable() not defined in parent Class FilePickerProfile

if (!parent::is_filename_acceptable($filename)) return FALSE;
#---correction (comment the line)
//if (!parent::is_filename_acceptable($filename)) return FALSE;

----------
L 145 $filename wrong syntaxe in function is_filename_acceptable

$ext = strtolower(substr(strrchr($file_name, '.'), 1));
#---correction
$ext = strtolower(substr(strrchr($filename, '.'), 1));


History

Comments
avatar
Date: 2022-04-20 12:43
Posted By: Fernando Morgado (JoMorg)

Made a few adjustments, but the method doesn't seem to be used anywhere... I'll
have to assess why the parent method is missing too, will revisit later
      
Updates

Updated: 2022-04-20 12:43
resolution_id: => 7