CMS MADE SIMPLE FORGE

CGExtensions

 

[#6572] incomplete string explode

avatar
Created By: tom (tomphantoo)
Date Submitted: Tue Jun 14 04:40:43 -0400 2011

Assigned To:
Version: 1.25.4
CMSMS Version: None
Severity: Major
Resolution: None
State: Open
Summary:
incomplete string explode
Detailed Description:
Function smart_explode() in class.cge_array.php fails to return the last array
item, when that item is empty. This caused a website crash, when importing
frontenduser data.

The following extract from the function code is the core of the problem.
Removing the condition fixed the crash.
 if( strlen($col) != 0 )
    {
 $out[] = $col;
    }


History