[Rt-commit] r9505 - in rt/branches/3.7-RTIR-RELENG: html/REST/1.0/NoAuth

sartak at bestpractical.com sartak at bestpractical.com
Tue Oct 30 12:36:25 EDT 2007


Author: sartak
Date: Tue Oct 30 12:36:24 2007
New Revision: 9505

Modified:
   rt/branches/3.7-RTIR-RELENG/   (props changed)
   rt/branches/3.7-RTIR-RELENG/html/REST/1.0/NoAuth/mail-gateway

Log:
 r44340 at onn:  sartak | 2007-10-30 12:35:54 -0400
 Bulletproof a mailgate check so it doesn't explode on decryption failure


Modified: rt/branches/3.7-RTIR-RELENG/html/REST/1.0/NoAuth/mail-gateway
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/html/REST/1.0/NoAuth/mail-gateway	(original)
+++ rt/branches/3.7-RTIR-RELENG/html/REST/1.0/NoAuth/mail-gateway	Tue Oct 30 12:36:24 2007
@@ -61,7 +61,7 @@
 my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( \%ARGS );
 if ( $status == 1 ) {
   $m->out('ok');
-  if ( $Ticket->Id ) {
+  if ( $Ticket && $Ticket->Id ) {
     $m->out( 'Ticket: '  . ($Ticket->Id             || '') );
     $m->out( 'Queue: '   . ($Ticket->QueueObj->Name || '') );
     $m->out( 'Owner: '   . ($Ticket->OwnerObj->Name || '') );


More information about the Rt-commit mailing list