Recently I've had cause to call my AxKit pages from server side
includes. Our web developer wants to use Dreamweaver and this makes it
easier. However I ran into a multipronged problem. When I setup AxKit
with "SetHandler axkit", it doesn't seem to pass on the environment
variables we use to validate clients SSL certificates. And just to make
matters fun when I use "SetHandler perl-scipt", AxKit::Handler gets
"AxKit" as it's first argument rather than the Apache request object.
this may be because I use Apache::SSI for my serverside includes but I
can't really avoid that. So to make an overly long story short, here is
a tiny patch that makes things flow a bit more smoothly for me.
Jason Adams
Index: lib/AxKit.pm
===================================================================
RCS file: /home/cvspublic/xml-axkit/lib/AxKit.pm,v
retrieving revision 1.54
diff --unified -r1.54 AxKit.pm
--- lib/AxKit.pm 4 Nov 2004 16:50:27 -0000 1.54
+++ lib/AxKit.pm 1 Apr 2005 18:58:08 -0000
@@ -215,6 +215,11 @@
sub handler {
my $r = shift;
+ # sometime things get called in a funny object orients manner.
+ if(!ref($r) || !$r->isa('Apache')) {
+ $r=shift;
+ }
+
# ##############################
# ## COMMENT OUT FOR RELEASE!!!
# ##############################
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]