phpBB

Code Changes

File: includes/functions_download.php

  Unmodified   Added   Modified   Removed
Line 166Line 166
	}

// Make sure the database record for the filesize is correct

	}

// Make sure the database record for the filesize is correct

	if ($size > 0 && $size != $attachment['filesize'])

	if ($size > 0 && $size != $attachment['filesize'] && strpos($attachment['physical_filename'], 'thumb_') === false)

	{
// Update database record
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '

	{
// Update database record
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '

Line 284Line 284

// There be dragons here.
// Not many follows the RFC...


// There be dragons here.
// Not many follows the RFC...

	if (strpos($user_agent, 'MSIE') !== false || strpos($user_agent, 'Safari') !== false || strpos($user_agent, 'Konqueror') !== false)

	if (strpos($user_agent, 'MSIE') !== false || strpos($user_agent, 'Konqueror') !== false)

	{
return "filename=" . rawurlencode($file);
}

	{
return "filename=" . rawurlencode($file);
}