Merge pull request #243 from d7415/master
image.php: Remove possible leading line from images
This commit is contained in:
commit
776b19536d
|
@ -41,6 +41,8 @@
|
||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
|
||||||
header("Last-Modified: $stamp", true);
|
header("Last-Modified: $stamp", true);
|
||||||
|
ob_clean(); // discard any data in the output buffer (if possible)
|
||||||
|
flush(); // flush headers (if possible)
|
||||||
readfile($filename);
|
readfile($filename);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue