summaryrefslogtreecommitdiff
path: root/FS/FS/CGI.pm
diff options
context:
space:
mode:
authorivan <ivan>2000-04-11 00:06:27 +0000
committerivan <ivan>2000-04-11 00:06:27 +0000
commite7004fed34b31db9e27020cc69f9723d1059cfd3 (patch)
tree6835578f5ffeba75abcc9ea13d57e1fdbcd738fa /FS/FS/CGI.pm
parent44261274cf5d0bf453005c50d43050143cd18774 (diff)
CGI.pm detects mod_perl and calls appropriate exit (Registry's override doesn't
work here)
Diffstat (limited to 'FS/FS/CGI.pm')
-rw-r--r--FS/FS/CGI.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm
index 47c034e..1e8fca6 100644
--- a/FS/FS/CGI.pm
+++ b/FS/FS/CGI.pm
@@ -123,9 +123,14 @@ Sends headers and an HTML error message, then exits.
sub eidiot {
#warn "eidiot depriciated";
idiot(@_);
- #exit;
- use Apache;
- Apache::exit;
+ if (exists $ENV{MOD_PERL}) {
+ eval {
+ use Apache;
+ Apache::exit();
+ };
+ } else {
+ exit;
+ }
}
=item popurl LEVEL