X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fcss%2Fautohandler;h=d06dcbf60c49da3242bfe16fd208a49d58b5c9fe;hb=187086c479a09629b7d180eec513fb7657f4e291;hp=1ef0e2e3a14fe4cd5ca8b0404d1180c3057b5554;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/rt/share/html/NoAuth/css/autohandler b/rt/share/html/NoAuth/css/autohandler index 1ef0e2e3a..d06dcbf60 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-2013 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -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();