From ea1ab70148decb7f5015d5c52511cd84ddf0ad17 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Apr 2021 21:00:42 +0000 Subject: Fix bug when second argument is absent, improve documentation Before, the InjectFoot variable wasn't cleared. --- lib/Apache/Inject/Handler.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Apache/Inject') 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{^/}) { -- cgit v1.2.3