X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fcss%2Fautohandler;h=bb0e5052fc3e3d39b03528bb4b8b90ae88ec0f95;hp=dabe704224b0f4ab31a4f3eb565e2d3a557d9980;hb=7322f2afedcc2f427e997d1535a503613a83f088;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/rt/share/html/NoAuth/css/autohandler b/rt/share/html/NoAuth/css/autohandler index dabe70422..bb0e5052f 100644 --- a/rt/share/html/NoAuth/css/autohandler +++ b/rt/share/html/NoAuth/css/autohandler @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,15 +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 ); -} 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();