diff options
author | cvs2git <cvs2git> | 2011-02-17 00:25:24 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2011-02-17 00:25:24 +0000 |
commit | 52bb24a1bc7d80a768639a4b04c471553078502b (patch) | |
tree | 2eb640a577bbbae345e98bbac400e6f07fcb6d8a /rt/html/NoAuth/images/autohandler | |
parent | fc6209f398899f0211cfcedeb81a3cd65e04a941 (diff) |
This commit was manufactured by cvs2svn to create tag 'RT_3_8_9'.RT_3_8_9
Diffstat (limited to 'rt/html/NoAuth/images/autohandler')
-rw-r--r-- | rt/html/NoAuth/images/autohandler | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/rt/html/NoAuth/images/autohandler b/rt/html/NoAuth/images/autohandler deleted file mode 100644 index 720979830..000000000 --- a/rt/html/NoAuth/images/autohandler +++ /dev/null @@ -1,28 +0,0 @@ -<%INIT> -&RT::Interface::Web::StaticFileHeaders(); - -# This autohandler will spit out RT's images if the user hasn't -# properly configured their webserver to stop RT from passing -# images through the mason handler. -my $file = $m->base_comp->source_file; - - -my $type = "application/octet-stream"; -if ($file =~ /\.(gif|png|jpe?g)$/i) { - $type = "image/$1"; - $type =~ s/jpg/jpeg/gi; -} - -die "file not found" unless -f $file && -r _; - -$r->content_type($type); -open my $fh, "<$file" or die "couldn't open file: $!"; -binmode($fh); -{ - local $/ = \16384; - $m->out($_) while (<$fh>); - $m->flush_buffer; -} -close $fh; -$m->abort; -</%INIT> |