# Password parsing fix on windows

1 messages from 2012-10-30 to 2012-10-30. Participants: Aleksey Vasenev.
Thread: https://gitlist.dev/t/31977

## Aleksey Vasenev, 2012-10-30 09:37

Subject: Password parsing fix on windows
Message-ID: <op.wmzjomzi945a05@ratio.ispring.lan>
URL: https://gitlist.dev/e/op.wmzjomzi945a05%40ratio.ispring.lan

```


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;

```
