freeside/htetc handler.pl,1.49,1.50

ivan ivan at pouncequick.420.am
Fri Dec 3 15:41:45 PST 2004


Update of /home/cvs/cvsroot/freeside/htetc
In directory pouncequick:/tmp/cvs-serv24098/htetc

Modified Files:
	handler.pl 
Log Message:
landing rt 3.2.2

Index: handler.pl
===================================================================
RCS file: /home/cvs/cvsroot/freeside/htetc/handler.pl,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- handler.pl	2 Dec 2004 09:59:48 -0000	1.49
+++ handler.pl	3 Dec 2004 23:41:41 -0000	1.50
@@ -40,7 +40,7 @@
 
 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 @@
           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 @@
 
       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 @@
 #!!
 #    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;




More information about the freeside-commits mailing list