summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
authorivan <ivan>2004-12-03 23:41:41 +0000
committerivan <ivan>2004-12-03 23:41:41 +0000
commit9f9cfe720ba74e559ab669c68b28d9db820189aa (patch)
treeeb23b8617fcb7c2e18d7b2847ca6040a537323df /htetc
parent87aa7bebdd905db78a405d41b420f5ccd6756d7a (diff)
landing rt 3.2.2
Diffstat (limited to 'htetc')
-rw-r--r--htetc/handler.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index c91a0ecba..557ec02ed 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -40,7 +40,7 @@ use vars qw($r);
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();
@@ -176,12 +176,14 @@ sub handler
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 HTML::Scrubber;
+ use Text::Quoted;
';
die $@ if $@;
}
@@ -284,8 +286,8 @@ sub handler
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]}; } );
@@ -304,7 +306,9 @@ sub handler
#!!
# 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;