summaryrefslogtreecommitdiff
path: root/tests/secureserver.pl
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-01-04 17:49:54 +0100
committerMarc Hoersken <info@marc-hoersken.de>2014-01-04 17:49:54 +0100
commit4fc8d83f5fe44790135d8fc4aa369aded604c6f0 (patch)
treea3bfe95b181718b235202545d4058eb076379923 /tests/secureserver.pl
parent8fc4abedf12b8f1f2db2e860180194750f36a296 (diff)
downloadcurl-4fc8d83f5fe44790135d8fc4aa369aded604c6f0.tar.gz
secureserver.pl: support for stunnel-path with nun-alphanum chars
This is desired to support stunnel installations on Windows.
Diffstat (limited to 'tests/secureserver.pl')
-rwxr-xr-xtests/secureserver.pl7
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;
}
}