projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FS/UI/Web.pm did not return a true value
[freeside.git]
/
htetc
/
handler.pl
diff --git
a/htetc/handler.pl
b/htetc/handler.pl
index
c91a0ec
..
934b419
100644
(file)
--- a/
htetc/handler.pl
+++ b/
htetc/handler.pl
@@
-40,7
+40,7
@@
use vars qw($r);
if ( %%%RT_ENABLED%%% ) {
eval '
if ( %%%RT_ENABLED%%% ) {
eval '
- use lib (
"/opt/rt3/local/lib", "/opt/rt3/lib"
);
+ use lib (
"/opt/rt3/local/lib", "/opt/rt3/lib"
);
use RT;
use vars qw($Nobody $SystemUser);
RT::LoadConfig();
use RT;
use vars qw($Nobody $SystemUser);
RT::LoadConfig();
@@
-112,6
+112,7
@@
sub handler
use FS::Conf;
use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot
small_custview myexit http_header);
use FS::Conf;
use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot
small_custview myexit http_header);
+ use FS::UI::Web;
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;
@@
-176,12
+177,14
@@
sub handler
use RT::CustomFields;
use RT::CustomFieldValues;
use RT::TicketCustomFieldValues;
use RT::CustomFields;
use RT::CustomFieldValues;
use RT::TicketCustomFieldValues;
-
+
use RT::Interface::Web;
use MIME::Entity;
use Text::Wrapper;
use CGI::Cookie;
use Time::ParseDate;
use RT::Interface::Web;
use MIME::Entity;
use Text::Wrapper;
use CGI::Cookie;
use Time::ParseDate;
+ use HTML::Scrubber;
+ use Text::Quoted;
';
die $@ if $@;
}
';
die $@ if $@;
}
@@
-284,8
+287,8
@@
sub handler
RT::Init();
RT::Init();
- # We don't need to handle non-text items
- return -1 if defined( $r->content_type ) && $r->content_type !~ m
|^text/|
io;
+ # We don't need to handle non-text
, non-xml
items
+ return -1 if defined( $r->content_type ) && $r->content_type !~ m
!(^text/|\bxml\b)!
io;
} else {
$ah->interp->set_escape( 'h' => sub { ${$_[0]}; } );
} else {
$ah->interp->set_escape( 'h' => sub { ${$_[0]}; } );
@@
-304,7
+307,9
@@
sub handler
#!!
# if ($RT::Handle->TransactionDepth) {
# $RT::Handle->ForceRollback;
#!!
# if ($RT::Handle->TransactionDepth) {
# $RT::Handle->ForceRollback;
-# $RT::Logger->crit("Transaction not committed. Usually indicates a software fault. Data loss may have occurred") ;
+# $RT::Logger->crit(
+#"Transaction not committed. Usually indicates a software fault. Data loss may have occurred"
+# );
# }
$status;
# }
$status;