summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjake <jake@jakes-mail.top>2022-08-26 07:50:29 -0400
committerjake <jake@jakes-mail.top>2022-08-26 07:50:29 -0400
commit600c62d79451dba30e21dbe35358da8dd89e2c8f (patch)
treea539631387db9e200c2a77cae78b5630082f9ff5
parent9f5b0269b46667d61bf74fcfa4f6183b0b5220f9 (diff)
Redirection check will not emit error if there is no redirection config
-rwxr-xr-xgmi.pl6
1 files 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;
}