X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FNoAuth%2Fjs%2Fautohandler;h=d3b933261c9a61efff203c06146d3d3318ebfc48;hp=b994580d350bec0da7052fc1a719811d277358bf;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=7588a4ac90a9b07c08a3107cd1107d773be1c991 diff --git a/rt/share/html/NoAuth/js/autohandler b/rt/share/html/NoAuth/js/autohandler index b994580d3..d3b933261 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-2013 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 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();