Skip to content

Commit 92f288d

Browse files
committed
fix(ssh): protect against word splitting
1 parent 6e5cb3d commit 92f288d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ _sftp()
421421
elif [[ $cur == -* ]]; then
422422
COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
423423
else
424-
_known_hosts_real ${ipvx-} -a ${configfile:+-F "$configfile"} -- "$cur"
424+
_known_hosts_real ${ipvx:+"$ipvx"} -a ${configfile:+-F "$configfile"} -- "$cur"
425425
fi
426426
} &&
427427
shopt -u hostcomplete && complete -F _sftp sftp

0 commit comments

Comments
 (0)