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:
Version: None
CMSMS Version: 2.2.16
Severity: Minor
Resolution: None
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