X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fcss%2Fautohandler;h=3974e833fca6f9194e792b8c298bb2898425a0c3;hp=aeca21910181e2c32ac9e1e7c2fdcf6fe8f46105;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e diff --git a/rt/share/html/NoAuth/css/autohandler b/rt/share/html/NoAuth/css/autohandler index aeca21910..3974e833f 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-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 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();