summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-28 02:54:53 -0700
committerAndrew Dolgov <[email protected]>2013-06-28 02:54:53 -0700
commit776b19536df2e01d8d5363c3a8647f3a24417b6b (patch)
tree7f92b25a91881ae1e209d4bf62c300a0746d0e6c
parent4f62f8f6dc950499698e06b9a56025c28f9a331e (diff)
parentc26b93aba509726843a3c1a458f76a24043e6aa6 (diff)
Merge pull request #243 from d7415/master
image.php: Remove possible leading line from images
-rw-r--r--image.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/image.php b/image.php
index dcc7d806d..a134e658e 100644
--- a/image.php
+++ b/image.php
@@ -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 {