Project

General

Profile

Bug #22979 » t3lib_div_split_fileref.patch

Administrator Admin, 2010-06-24 11:48

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
$info['file'] = $fileref;
}
$reg='';
if ( preg_match('/(.*)\.([^\.]*$)/',$info['file'],$reg) ) {
if (is_file($fileref) && preg_match('/(.*)\.([^\.]*$)/',$info['file'],$reg) ) {
$info['filebody'] = $reg[1];
$info['fileext'] = strtolower($reg[2]);
$info['realFileext'] = $reg[2];
(1-1/2)