Zeile 467 | Zeile 467 |
---|
{ $file = upload_file($attachment, $mybb->settings['uploadspath'].'/', $filename); }
|
{ $file = upload_file($attachment, $mybb->settings['uploadspath'].'/', $filename); }
|
if($month_dir)
| elseif($month_dir)
|
{ $filename = $month_dir."/".$filename; }
| { $filename = $month_dir."/".$filename; }
|
Zeile 629 | Zeile 628 |
---|
}
$upload['original_filename'] = preg_replace("#/$#", "", $file['name']); // Make the filename safe
|
}
$upload['original_filename'] = preg_replace("#/$#", "", $file['name']); // Make the filename safe
|
$upload['original_filename'] = utf8_handle_4byte_string($upload['original_filename']);
| |
$filename = preg_replace("#/$#", "", $filename); // Make the filename safe $moved = @move_uploaded_file($file['tmp_name'], $path."/".$filename);
| $filename = preg_replace("#/$#", "", $filename); // Make the filename safe $moved = @move_uploaded_file($file['tmp_name'], $path."/".$filename);
|