threads / discuss / 31977

Password parsing fix on windows

Subject: Password parsing fix on windows

## tl;dr

One message between Oct 30, 2012 and Oct 30, 2012.

replies: 0people: 1as markdown or json

Aleksey Vasenev· Oct 30, 2012, 09:37 UTC · lore
diff --git a/perl/Git/SVN/Prompt.pm b/perl/Git/SVN/Prompt.pm
index 3a6f8af..ae2aeda 100644
--- a/perl/Git/SVN/Prompt.pm
+++ b/perl/Git/SVN/Prompt.pm
@@ -124,7 +124,7 @@ sub _read_password {
 	if (exists $ENV{GIT_ASKPASS}) {
 		open(PH, "-|", $ENV{GIT_ASKPASS}, $prompt);
 		$password = <PH>;
-		$password =~ s/[\012\015]//; # \n\r
+		$password =~ s/[\012\015]+//; # \n\r
 		close(PH);
 	} else {
 		print STDERR $prompt;

← back to recent threads