]> git.proxmox.com Git - cargo.git/commitdiff
Add some safety rails :D
authort11s <hello@thecosmic.io>
Thu, 14 Nov 2019 03:49:49 +0000 (19:49 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2019 03:49:49 +0000 (19:49 -0800)
src/cargo/ops/registry.rs

index 1d81c04c6c785998b322867e01f529cf618d1684..d029d56234e8abc3cb81b2453c476aaa4a97ec32 100644 (file)
@@ -598,7 +598,7 @@ pub fn registry_login(
                 .read_line(&mut line)
                 .chain_err(|| "failed to read stdin")
                 .map_err(failure::Error::from)?;
-            line.trim().to_string()
+            line.replace("cargo login", "").trim().to_string();
         }
     };