X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fcss%2Fautohandler;h=2795a1a80aa22ec6f87414cc7bd2d0e93b3b1fb0;hb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0;hp=c0647ad30898219b65db1b07b34a3cc673caa554;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/NoAuth/css/autohandler b/rt/share/html/NoAuth/css/autohandler index c0647ad30..2795a1a80 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-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 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();