summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/image.php b/image.php
index 60f2cc839..94cb8e817 100644
--- a/image.php
+++ b/image.php
@@ -31,14 +31,7 @@
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
header("Last-Modified: $stamp", true);
- $fp = fopen($filename, "r");
-
- if ($fp) {
- while ($data = fread($fp, 32768)) {
- print $data;
- }
- fclose($fp);
- }
+ readfile($filename);
} else {
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");