projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backport from 3.3-TESTING to fix XSS on ticket lists
[freeside.git]
/
htetc
/
global.asa
diff --git
a/htetc/global.asa
b/htetc/global.asa
index
4358e87
..
612f6f4
100644
(file)
--- a/
htetc/global.asa
+++ b/
htetc/global.asa
@@
-15,10
+15,15
@@
use HTML::Entities;
use IO::Handle;
use IO::File;
use Net::Whois::Raw qw(whois);
use IO::Handle;
use IO::File;
use Net::Whois::Raw qw(whois);
+if ( $] < 5.006 ) {
+ eval "use Net::Whois::Raw 0.32 qw(whois)";
+ die $@ if $@;
+}
use Business::CreditCard;
use String::Approx qw(amatch);
use Chart::LinesPoints;
use HTML::Widgets::SelectLayers 0.03;
use Business::CreditCard;
use String::Approx qw(amatch);
use Chart::LinesPoints;
use HTML::Widgets::SelectLayers 0.03;
+use FS;
use FS::UID qw(cgisuidsetup dbh getotaker datasrc driver_name);
use FS::Record qw(qsearch qsearchs fields dbdef);
use FS::Conf;
use FS::UID qw(cgisuidsetup dbh getotaker datasrc driver_name);
use FS::Record qw(qsearch qsearchs fields dbdef);
use FS::Conf;
@@
-27,6
+32,7
@@
use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot
use FS::Msgcat qw(gettext geterror);
use FS::Misc qw( send_email );
use FS::Report::Table::Monthly;
use FS::Msgcat qw(gettext geterror);
use FS::Misc qw( send_email );
use FS::Report::Table::Monthly;
+use FS::TicketSystem;
use FS::agent;
use FS::agent_type;
use FS::agent;
use FS::agent_type;
@@
-67,6
+73,9
@@
use FS::part_export;
use FS::part_export_option;
use FS::export_svc;
use FS::msgcat;
use FS::part_export_option;
use FS::export_svc;
use FS::msgcat;
+use FS::rate;
+use FS::rate_region;
+use FS::rate_prefix;
sub Script_OnStart {
$Response->AddHeader('Cache-control' => 'no-cache');
sub Script_OnStart {
$Response->AddHeader('Cache-control' => 'no-cache');
@@
-198,7
+207,9
@@
sub sprintAutoProfile {
sub include {
( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
sub include {
( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
- ${$Response->TrapInclude($file, @_)};
+ #broken in 5.005# ${$Response->TrapInclude($file, @_)};
+ my $ref = $Response->TrapInclude($file, @_);
+ $$ref;
}
if ( defined(@DBIx::Profile::ISA) ) {
}
if ( defined(@DBIx::Profile::ISA) ) {