]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
secureserver.pl: support for stunnel-path with nun-alphanum chars
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 4 Jan 2014 16:49:54 +0000 (17:49 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sat, 4 Jan 2014 16:49:54 +0000 (17:49 +0100)
This is desired to support stunnel installations on Windows.

tests/secureserver.pl

index 36a902e5a0eecac25b44e7ece50deec93b29b8b3..aaf6e609448f113b0cc77e0b4d8f97f47af6a9f6 100755 (executable)
@@ -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;
         }
     }