phpBB

Code Changes

File: download/file.php

  Unmodified   Added   Modified   Removed
Line 507Line 507
				header('X-Download-Options: noopen');
}
}

				header('X-Download-Options: noopen');
}
}

	}

if ($size)
{
header("Content-Length: $size");

 
	}

// Close the db connection before sending the file

	}

// Close the db connection before sending the file

Line 519Line 514

if (!set_modified_headers($attachment['filetime'], $user->browser))
{


if (!set_modified_headers($attachment['filetime'], $user->browser))
{

 
		// Send Content-Length only if set_modified_headers() does not send
// status 304 - Not Modified
if ($size)
{
header("Content-Length: $size");
}


		// Try to deliver in chunks
@set_time_limit(0);


		// Try to deliver in chunks
@set_time_limit(0);