secureserver.pl: support for stunnel-path with nun-alphanum chars

This is desired to support stunnel installations on Windows.
This commit is contained in:
Marc Hoersken 2014-01-04 17:49:54 +01:00
parent 8fc4abedf1
commit 4fc8d83f5f
1 changed files with 6 additions and 1 deletions

View File

@ -112,7 +112,12 @@ while(@ARGV) {
}
elsif($ARGV[0] eq '--stunnel') {
if($ARGV[1]) {
$stunnel = $ARGV[1];
if($ARGV[1] =~ /^([\w\/]+)$/) {
$stunnel = $ARGV[1];
}
else {
$stunnel = "\"". $ARGV[1] ."\"";
}
shift @ARGV;
}
}