We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
user@-arg...
1 parent 4dda375 commit 2911623Copy full SHA for 2911623
gix-transport/src/client/blocking_io/ssh/program_kind.rs
@@ -65,6 +65,7 @@ impl ProgramKind {
65
66
let host_maybe_with_user_as_ssh_arg = match (url.user_as_argument(), url.host_as_argument()) {
67
(Usable(user), Usable(host)) => format!("{user}@{host}"),
68
+ (Usable(user), Dangerous(host)) => format!("{user}@{host}"), // The `user@` makes it safe.
69
(Absent, Usable(host)) => host.into(),
70
(Dangerous(user), _) => Err(ssh::invocation::Error::AmbiguousUserName { user: user.into() })?,
71
(_, Dangerous(host)) => Err(ssh::invocation::Error::AmbiguousHostName { host: host.into() })?,
0 commit comments