summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
authorivan <ivan>2008-05-28 10:14:53 +0000
committerivan <ivan>2008-05-28 10:14:53 +0000
commitd7c3a87d9369deb7e8b8f86b04fa8cf13f28eb81 (patch)
treebd61b8e1be8da0e717d9fac95c5fdbdd4fd275a4 /htetc
parentc6a3896a049e3375f85c44e9a43d37e59bc1dbf9 (diff)
mailgate realiability fix: don't bomb out when FS dbdef hasn't been initialized yet
Diffstat (limited to 'htetc')
-rw-r--r--htetc/handler.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 4ff08d473..dade7128a 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -258,7 +258,11 @@ sub handler
};
- unless ( $HTML::Mason::r->filename =~ /\/rt\/.*NoAuth/ ) { #RT
+ #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
+ ) {
$cgi = new CGI;
&cgisuidsetup($cgi);
#&cgisuidsetup($r);