From 600c62d79451dba30e21dbe35358da8dd89e2c8f Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 26 Aug 2022 07:50:29 -0400 Subject: Redirection check will not emit error if there is no redirection config --- gmi.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gmi.pl b/gmi.pl index 1cf1244..8381ecf 100755 --- a/gmi.pl +++ b/gmi.pl @@ -7,7 +7,7 @@ use warnings; use 5.010; #use diagnostics; -our $VERSION = 'v0.17.0'; +our $VERSION = 'v0.17.1'; # Modules use IO::Socket::SSL; # CPAN @@ -1092,6 +1092,7 @@ sub redirection_parameter { $vhost = 'default'; } + ## no critic (cascading) if ($r eq 'no') { return 0; } @@ -1101,9 +1102,10 @@ sub redirection_parameter { elsif ($r eq 'regex') { return 2; } - else { + elsif ($r) { serr("'$vhost': Given redirection parameter is invalid: $r"); } + return; } -- cgit v1.2.3