summaryrefslogtreecommitdiff
path: root/htetc/handler.pl
diff options
context:
space:
mode:
authorivan <ivan>2008-05-28 10:14:52 +0000
committerivan <ivan>2008-05-28 10:14:52 +0000
commit85c516c6a894772e101d24a16ad2f4df978c0f7f (patch)
tree171e56cd114761f036ba21a4d3861ead95691a9a /htetc/handler.pl
parentf75874410025bf36ba5c9e2ff14b858feeaa0ff5 (diff)
mailgate realiability fix: don't bomb out when FS dbdef hasn't been initialized yet
Diffstat (limited to 'htetc/handler.pl')
-rw-r--r--htetc/handler.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 5e34c1e0d..92564350e 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -289,7 +289,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);