[freeside-commits] freeside/htetc handler.pl,1.104,1.105

Ivan,,, ivan at wavetail.420.am
Wed May 28 03:41:23 PDT 2008


Update of /home/cvs/cvsroot/freeside/htetc
In directory wavetail.420.am:/tmp/cvs-serv22291

Modified Files:
	handler.pl 
Log Message:
mailgate realiability fix: don't bomb out when FS dbdef hasn't been initialized yet

Index: handler.pl
===================================================================
RCS file: /home/cvs/cvsroot/freeside/htetc/handler.pl,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- handler.pl	28 May 2008 10:14:52 -0000	1.104
+++ handler.pl	28 May 2008 10:41:21 -0000	1.105
@@ -289,16 +289,20 @@
 
       };
       
-      #is this conditional a bad idea entirely, hmm
-      unless ( 
-           $HTML::Mason::r->filename =~ /\/rt\/.*NoAuth/ #RT images/JS
-        && $HTML::Mason::r->filename !~ /\/rt\/REST\//   #but NOT mail gw
-      ) {
+      if ( $HTML::Mason::r->filename !~ /\/rt\/.*NoAuth/ ) { #not RT images/JS
+
         $cgi = new CGI;
         &cgisuidsetup($cgi);
         #&cgisuidsetup($r);
         $p = popurl(2);
         $fsurl = rooturl();
+
+      } elsif ( $HTML::Mason::r->filename =~ /\/rt\/REST\/.*NoAuth/ ) {
+
+        #need to log somebody in for the mail gw
+        #&adminsuidsetup('fs_selfservice'); #old installs w/'fs_selfserv'??
+        &adminsuidsetup('fs_queue');
+
       }
 
       sub include {



More information about the freeside-commits mailing list