aboutsummaryrefslogtreecommitdiff
path: root/Inject.pm
diff options
context:
space:
mode:
authorroot <root@rbsd.ankarstrom.se>2021-04-23 00:29:32 +0000
committerroot <root@rbsd.ankarstrom.se>2021-04-23 00:29:32 +0000
commitf944b2592d581ddb7e6c7614ea3766328084b682 (patch)
tree6e8c4dd97bc88c49ea0c8ee07ea289793e4d2002 /Inject.pm
downloadApache-Inject-f944b2592d581ddb7e6c7614ea3766328084b682.tar.gz
First commit
Diffstat (limited to 'Inject.pm')
-rw-r--r--Inject.pm25
1 files changed, 25 insertions, 0 deletions
diff --git a/Inject.pm b/Inject.pm
new file mode 100644
index 0000000..5b6df8d
--- /dev/null
+++ b/Inject.pm
@@ -0,0 +1,25 @@
+package Apache::Inject;
+
+use strict;
+use warnings;
+
+use Apache2::CmdParms ();
+use Apache2::Module ();
+use Apache2::Const qw/OR_LIMIT TAKE12/;
+
+my @directives = (
+ { name => 'Inject',
+ func => __PACKAGE__.'::Inject',
+ req_override => OR_LIMIT,
+ args_how => TAKE12,
+ errmsg => 'Inject HeadFile[!] FootFile[!]' }
+);
+Apache2::Module::add(__PACKAGE__, \@directives);
+
+sub Inject {
+ my ($self, $parms, @args) = @_;
+ $parms->add_config(['SetHandler perl-script',
+ 'PerlHandler Apache::Inject::Handler']);
+}
+
+1;