summaryrefslogtreecommitdiff
path: root/rt/html/NoAuth/images
diff options
context:
space:
mode:
authorivan <ivan>2005-10-15 09:11:20 +0000
committerivan <ivan>2005-10-15 09:11:20 +0000
commitd4d0590bef31071e8809ec046717444b95b3f30a (patch)
treeee1236da50578390d2642114f28eaed99a5efb18 /rt/html/NoAuth/images
parentd39d52aac8f38ea9115628039f0df5aa3ac826de (diff)
import rt 3.4.4
Diffstat (limited to 'rt/html/NoAuth/images')
-rw-r--r--rt/html/NoAuth/images/autohandler7
1 files changed, 5 insertions, 2 deletions
diff --git a/rt/html/NoAuth/images/autohandler b/rt/html/NoAuth/images/autohandler
index 86f3b2286..2e428c157 100644
--- a/rt/html/NoAuth/images/autohandler
+++ b/rt/html/NoAuth/images/autohandler
@@ -15,7 +15,10 @@ if ($file =~ /\.(gif|png|jpe?g)$/i) {
die unless (-f $file && -r $file);
$r->content_type($type);
open (FILE, "<$file") || die;
-$m->out($_) while (<FILE>);
-close(FILE);
+{
+ local $/ = \16384;
+ $m->out($_) while (<FILE>);
+ close(FILE);
+}
$m->abort;
</%init>