diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-01-04 17:49:54 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-01-04 17:49:54 +0100 |
commit | 4fc8d83f5fe44790135d8fc4aa369aded604c6f0 (patch) | |
tree | a3bfe95b181718b235202545d4058eb076379923 /tests | |
parent | 8fc4abedf12b8f1f2db2e860180194750f36a296 (diff) |
secureserver.pl: support for stunnel-path with nun-alphanum chars
This is desired to support stunnel installations on Windows.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/secureserver.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/secureserver.pl b/tests/secureserver.pl index 36a902e5a..aaf6e6094 100755 --- a/tests/secureserver.pl +++ b/tests/secureserver.pl @@ -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; } } |