X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fjs%2Fautohandler;h=ae1344b087c75c9528ed009a328731dedabfccf4;hb=187086c479a09629b7d180eec513fb7657f4e291;hp=451bf67785508b73ea5e1b2a0f8cb7a142273ee1;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/NoAuth/js/autohandler b/rt/share/html/NoAuth/js/autohandler index 451bf6778..ae1344b08 100644 --- a/rt/share/html/NoAuth/js/autohandler +++ b/rt/share/html/NoAuth/js/autohandler @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,17 +46,8 @@ %# %# END BPS TAGGED BLOCK }}} <%init> - -my $type; -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('application/x-javascript'); - $m->call_next(); - return(); -} +RT::Interface::Web::StaticFileHeaders(); +$r->content_type('application/x-javascript; charset=utf-8'); +$m->call_next(); +return();