mirror of
https://github.com/curl/curl.git
synced 2025-09-25 21:46:48 +03:00
secureserver.pl: support for stunnel-path with nun-alphanum chars
This is desired to support stunnel installations on Windows.
This commit is contained in:
parent
8fc4abedf1
commit
4fc8d83f5f
|
@ -112,7 +112,12 @@ while(@ARGV) {
|
||||||
}
|
}
|
||||||
elsif($ARGV[0] eq '--stunnel') {
|
elsif($ARGV[0] eq '--stunnel') {
|
||||||
if($ARGV[1]) {
|
if($ARGV[1]) {
|
||||||
|
if($ARGV[1] =~ /^([\w\/]+)$/) {
|
||||||
$stunnel = $ARGV[1];
|
$stunnel = $ARGV[1];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$stunnel = "\"". $ARGV[1] ."\"";
|
||||||
|
}
|
||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user