aboutsummaryrefslogtreecommitdiff
path: root/lib/Apache/Inject
diff options
context:
space:
mode:
authorroot <root@rbsd.ankarstrom.se>2021-04-24 21:00:42 +0000
committerroot <root@rbsd.ankarstrom.se>2021-04-24 21:00:42 +0000
commitea1ab70148decb7f5015d5c52511cd84ddf0ad17 (patch)
tree2a526f44b12c44364439f8245373ea8eb89f7f20 /lib/Apache/Inject
parentbc581b57b8300b848c41bd42864415f5e3415242 (diff)
downloadApache-Inject-ea1ab70148decb7f5015d5c52511cd84ddf0ad17.tar.gz
Fix bug when second argument is absent, improve documentation
Before, the InjectFoot variable wasn't cleared.
Diffstat (limited to 'lib/Apache/Inject')
-rw-r--r--lib/Apache/Inject/Handler.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Apache/Inject/Handler.pm b/lib/Apache/Inject/Handler.pm
index 794eb2f..b1e6319 100644
--- a/lib/Apache/Inject/Handler.pm
+++ b/lib/Apache/Inject/Handler.pm
@@ -55,6 +55,7 @@ sub inject {
# Retrieve value implicitly set by Inject directive
return if not (my $val = $r->dir_config($var));
+ return if $val eq ' '; # special value signifying absence of argument
# Validate path
if ($val =~ m{^/}) {