summaryrefslogtreecommitdiff
path: root/gmi.pl
diff options
context:
space:
mode:
Diffstat (limited to 'gmi.pl')
-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;
}