]> git.wh0rd.org - tt-rss.git/blobdiff - image.php
daemon2: check if schema version changed
[tt-rss.git] / image.php
index 36da375aabbde9e4055027f2bb9ba3999b349649..94cb8e8174b262e3973651aee49e171d17400593 100644 (file)
--- a/image.php
+++ b/image.php
@@ -30,7 +30,9 @@
                        header("Content-type: image/png");
                        $stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
                        header("Last-Modified: $stamp", true);
-                       echo file_get_contents($filename);
+
+                       readfile($filename);
+
                } else {
                        header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
                        echo "File not found.";