X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fcss%2Fautohandler;fp=rt%2Fshare%2Fhtml%2FNoAuth%2Fcss%2Fautohandler;h=c0834440b26f671f587650aa730f533deef85285;hb=43a06151e47d2c59b833cbd8c26d97865ee850b6;hp=dabe704224b0f4ab31a4f3eb565e2d3a557d9980;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4;p=freeside.git diff --git a/rt/share/html/NoAuth/css/autohandler b/rt/share/html/NoAuth/css/autohandler index dabe70422..c0834440b 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-2012 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -48,9 +48,15 @@ <%init> my $file = $m->base_comp->source_file; -if ($file =~ /\.(gif|png|jpe?g)$/i) { +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') ;