X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMason.pm;h=ff0baee1be1f0931302cd8c7164cab6d75b612de;hb=4da3c98f2f021ac48b195dd205bdbb85dc5b58b9;hp=297d591eaef2d833ca1392231ef6a7ef41ad7e45;hpb=0ed195595b5c7ea404c8848d9d1881ada4214489;p=freeside.git diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index 297d591ea..ff0baee1b 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -45,13 +45,7 @@ if ( -e $addl_handler_use_file ) { use strict; use vars qw( %session ); - use CGI 3.29 qw(-private_tempfiles); #3.29 to fix RT attachment problems - - #breaks quick payment entry - #http://rt.cpan.org/Public/Bug/Display.html?id=37365 - die "CGI.pm v3.38 is broken, use any other version >= 3.29". - " (Debian 5.0? aptitude remove libcgi-pm-perl)" - if $CGI::VERSION == 3.38; + use CGI 3.39 qw(-private_tempfiles); #3.39 for cpan#37365 #use CGI::Carp qw(fatalsToBrowser); use CGI::Cookie; @@ -77,7 +71,7 @@ if ( -e $addl_handler_use_file ) { use HTML::TableExtract qw(tree); use HTML::FormatText; use HTML::Defang; - use JSON::XS; + use Cpanel::JSON::XS; use MIME::Base64; use IO::Handle; use IO::File; @@ -121,6 +115,7 @@ if ( -e $addl_handler_use_file ) { use HTML::Widgets::SelectLayers 0.07; #should go away in favor of #selectlayers.html use Locale::Country; + #use FS::geocode_Mixin; #for its code2country use Locale::Currency; use Locale::Currency::Format; use Business::US::USPS::WebTools::AddressStandardization; @@ -136,13 +131,14 @@ if ( -e $addl_handler_use_file ) { use FS::Conf; use FS::CGI qw(header menubar table itable ntable idiot eidiot myexit http_header); - use FS::UI::Web qw(svc_url); + use FS::UI::Web qw(svc_url random_id); use FS::UI::Web::small_custview qw(small_custview); use FS::UI::bytecount; use FS::UI::REST qw( rest_auth rest_uri_remain encode_rest ); use FS::Msgcat qw(gettext geterror); use FS::Misc qw( send_email send_fax ocr_image states_hash counties cities state_label + card_types ); use FS::Misc::eps2png qw( eps2png ); use FS::Report::FCC_477; @@ -405,6 +401,13 @@ if ( -e $addl_handler_use_file ) { use FS::cust_pkg_reason_fee; use FS::part_svc_link; use FS::access_user_log; + use FS::report_batch; + use FS::report_batch; + use FS::report_batch; + use FS::report_batch; + use FS::password_history; + use FS::svc_fiber; + use FS::fiber_olt; # Sammath Naur if ( $FS::Mason::addl_handler_use ) { @@ -509,7 +512,7 @@ if ( -e $addl_handler_use_file ) { sub include { use vars qw($m); - #carp #should just switch to <& &> syntax + #warn 'include deprecated; use an HTML::Mason <& &> style include (or $m->scomp) at '. $m->callers(0)->path. "\n"; $m->scomp(@_); } @@ -646,7 +649,8 @@ sub mason_interps { [ 'rt' => '%%%FREESIDE_DOCUMENT_ROOT%%%/rt' ], [ 'freeside' => '%%%FREESIDE_DOCUMENT_ROOT%%%' ], ], - escape_flags => { 'h' => \&RT::Interface::Web::EscapeUTF8, + escape_flags => { 'h' => \&RT::Interface::Web::EscapeHTML, + #u and j aren't used anymore? :/ 'u' => \&RT::Interface::Web::EscapeURI, 'j' => \&RT::Interface::Web::EscapeJS, 'js_string' => $js_string_sub,