Merge pull request #243 from d7415/master

image.php: Remove possible leading line from images
This commit is contained in:
Andrew Dolgov 2013-06-28 02:54:53 -07:00
commit 776b19536d
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@
header("Content-type: image/png");
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
header("Last-Modified: $stamp", true);
ob_clean(); // discard any data in the output buffer (if possible)
flush(); // flush headers (if possible)
readfile($filename);
}
} else {