X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fjs%2Fautohandler;h=682cf5756bf68652bb49dce14fc23dfff93c97e2;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=29444400f9a003e12216bc70aa3e86b28cf01798;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/NoAuth/js/autohandler b/rt/share/html/NoAuth/js/autohandler index 29444400f..682cf5756 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-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 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();