Code Duplication    Length = 7-7 lines in 2 locations

Sources/ShowAttachments.php 1 location

@@ 224-230 (lines=7) @@
221
222
	// Check whether the ETag was sent back, and cache based on that...
223
	$eTag = '"' . substr($_REQUEST['attach'] . $file['filePath'] . filemtime($file['filePath']), 0, 64) . '"';
224
	if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) && strpos($_SERVER['HTTP_IF_NONE_MATCH'], $eTag) !== false)
225
	{
226
		ob_end_clean();
227
228
		header('HTTP/1.1 304 Not Modified');
229
		exit;
230
	}
231
232
	// Send the attachment headers.
233
	header('Pragma: ');

Sources/Display.php 1 location

@@ 1645-1651 (lines=7) @@
1642
1643
	// Check whether the ETag was sent back, and cache based on that...
1644
	$eTag = '"' . substr($_REQUEST['attach'] . $real_filename . filemtime($filename), 0, 64) . '"';
1645
	if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) && strpos($_SERVER['HTTP_IF_NONE_MATCH'], $eTag) !== false)
1646
	{
1647
		ob_end_clean();
1648
1649
		header('HTTP/1.1 304 Not Modified');
1650
		exit;
1651
	}
1652
1653
	// Send the attachment headers.
1654
	header('Pragma: ');