[Rt-commit] r17946 - in rt/3.999/branches/merge_to_3.8.2: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jan 27 21:45:49 EST 2009


Author: sunnavy
Date: Tue Jan 27 21:45:49 2009
New Revision: 17946

Modified:
   rt/3.999/branches/merge_to_3.8.2/   (props changed)
   rt/3.999/branches/merge_to_3.8.2/share/html/NoAuth/RichText/dhandler

Log:
 r19081 at sunnavys-mb:  sunnavy | 2009-01-28 10:44:10 +0800
 merged share/html/NoAuth/RichText/dhandler


Modified: rt/3.999/branches/merge_to_3.8.2/share/html/NoAuth/RichText/dhandler
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/share/html/NoAuth/RichText/dhandler	(original)
+++ rt/3.999/branches/merge_to_3.8.2/share/html/NoAuth/RichText/dhandler	Tue Jan 27 21:45:49 2009
@@ -51,8 +51,6 @@
 my $file = dirname($m->current_comp->source_file) . '/FCKeditor/' . $arg;
 return $m->decline unless -f $file && -r _;
 
-&RT::Interface::Web::static_file_headers();
-
 my $suffix = $1 if $file =~ /([^.]+)$/;
 
 my $type = {qw(
@@ -65,14 +63,7 @@
     png     image/png
 )}->{$suffix} || 'application/octet-stream';
 
-$r->content_type($type);
-open my $fh, '<:utf8', $file or die "couldn't open file: $!";
-binmode($fh);
-{
-    local $/ = \16384;
-    $m->out($_) while (<$fh>);
-    $m->flush_buffer;
-}
-close $fh;
+RT::Interface::Web->send_static_file( file => $file, type => $type );
+
 $m->abort;
 </%INIT>


More information about the Rt-commit mailing list