[freeside-commits] freeside/htetc handler.pl,1.86.2.11,1.86.2.12
Ivan,,,
ivan at wavetail.420.am
Wed May 28 03:41:24 PDT 2008
Update of /home/cvs/cvsroot/freeside/htetc
In directory wavetail.420.am:/tmp/cvs-serv22298
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.86.2.11
retrieving revision 1.86.2.12
diff -u -d -r1.86.2.11 -r1.86.2.12
--- handler.pl 28 May 2008 10:14:53 -0000 1.86.2.11
+++ handler.pl 28 May 2008 10:41:22 -0000 1.86.2.12
@@ -258,16 +258,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