diff options
author | jake <jake@jakes-mail.top> | 2022-08-26 07:50:29 -0400 |
---|---|---|
committer | jake <jake@jakes-mail.top> | 2022-08-26 07:50:29 -0400 |
commit | 600c62d79451dba30e21dbe35358da8dd89e2c8f (patch) | |
tree | a539631387db9e200c2a77cae78b5630082f9ff5 /gmi.pl | |
parent | 9f5b0269b46667d61bf74fcfa4f6183b0b5220f9 (diff) |
Redirection check will not emit error if there is no redirection config
Diffstat (limited to 'gmi.pl')
-rwxr-xr-x | gmi.pl | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |