From 4fc8d83f5fe44790135d8fc4aa369aded604c6f0 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sat, 4 Jan 2014 17:49:54 +0100 Subject: secureserver.pl: support for stunnel-path with nun-alphanum chars This is desired to support stunnel installations on Windows. --- tests/secureserver.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } } -- cgit v1.2.3