CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12621] FilePicker upload bug

avatar
Created By: Chris Taylor (chrisbt)
Date Submitted: Thu Jun 08 07:56:26 -0400 2023

Assigned To: Fernando Morgado (JoMorg)
Version: None
CMSMS Version: 2.2.16
Severity: Minor
Resolution: Fixed
State: Open
Summary:
FilePicker upload bug
Detailed Description:
Error occurs when trying to upload image that dos not have
$_SERVER['HTTP_CONTENT_RANGE'] set..

PHP Warning:  Trying to access array offset on value of type null in
/var/www/html/blah-dev/modules/FilePicker/lib/class.jquery_upload_handler.php on
line 305

Fix, replace line 305:
            $total_file_size = $content_range[3];
With:
            $total_file_size = $content_range ? $content_range[3] : null;

(Same as fix already applied in
/FileManager/lib/class.jquery_upload_handler.php)


History

Comments
avatar
Date: 2023-10-03 15:18
Posted By: Fernando Morgado (JoMorg)

fixed in SVN thanks
      
Updates

Updated: 2023-10-03 15:18
resolution_id: => 7
assigned_to_id: 100 => 12532