diff options
Diffstat (limited to 'rt/share/html/NoAuth/css/autohandler')
-rw-r--r-- | rt/share/html/NoAuth/css/autohandler | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/rt/share/html/NoAuth/css/autohandler b/rt/share/html/NoAuth/css/autohandler index aeca21910..2795a1a80 100644 --- a/rt/share/html/NoAuth/css/autohandler +++ b/rt/share/html/NoAuth/css/autohandler @@ -46,21 +46,8 @@ %# %# END BPS TAGGED BLOCK }}} <%init> -my $file = $m->base_comp->source_file; - -if ($file =~ /\.(?:gif|png|jpe?g)$/i) { - my $relfile = $m->base_comp->path; - RT::Interface::Web->SendStaticFile( File => $file, RelativeFile => $relfile ); -} -elsif ($file =~ /\.(?:htc)$/i) { - RT::Interface::Web::StaticFileHeaders(); - $r->content_type('text/x-component') ; - $m->call_next(); - return(); -} else { - RT::Interface::Web::StaticFileHeaders(); - $r->content_type('text/css') ; - $m->call_next(); - return(); -} +RT::Interface::Web::StaticFileHeaders(); +$r->content_type('text/css; charset=utf-8') ; +$m->call_next(); +return(); </%init> |