summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-05-28 10:41:22 +0000
committerivan <ivan>2008-05-28 10:41:22 +0000
commit8f8c09482cc99a40bd1cf1be0597b27d2781789c (patch)
tree271d63cf7d3d3887d2bd7a1b3d03897e8f2d5461
parentd7c3a87d9369deb7e8b8f86b04fa8cf13f28eb81 (diff)
mailgate realiability fix: don't bomb out when FS dbdef hasn't been initialized yet
-rw-r--r--htetc/handler.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index dade7128a..9a4f4395c 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -258,16 +258,20 @@ sub handler
};
- #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 {