]> git.wh0rd.org Git - tt-rss.git/commitdiff
image.php: Flush headers and output buffer to prevent a leading empty line in some...
authorMartin Stone <martin@d7415.co.uk>
Fri, 28 Jun 2013 09:47:20 +0000 (09:47 +0000)
committerMartin Stone <martin@d7415.co.uk>
Fri, 28 Jun 2013 09:47:20 +0000 (09:47 +0000)
Signed-off-by: Martin Stone <martin@d7415.co.uk>
image.php

index dcc7d806d406ec3f3c2beb07839c65e39b88ca2c..a134e658e88c4a6b28e1c4b5f05d39e55c899f13 100644 (file)
--- 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 {