Vergleich inc/functions_upload.php - 1.6.11 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 467Zeile 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 629Zeile 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);