summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-05 15:31:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-05 15:31:18 +0000
commita9def5f61d5a49e5f148951af4e422c446b57c84 (patch)
tree05ebd0d56a5255f27020b2cb97e8123645d6db7c
parent29989153a3f490d06955a4d109610a779234b798 (diff)
downloadurpmi-a9def5f61d5a49e5f148951af4e422c446b57c84.tar
urpmi-a9def5f61d5a49e5f148951af4e422c446b57c84.tar.gz
urpmi-a9def5f61d5a49e5f148951af4e422c446b57c84.tar.bz2
urpmi-a9def5f61d5a49e5f148951af4e422c446b57c84.tar.xz
urpmi-a9def5f61d5a49e5f148951af4e422c446b57c84.zip
- urpmi.addmedia:
o enhance parsing of urls with login:password for logins with "@" so that password doesn't end up in urpmi.cfg
-rw-r--r--NEWS3
-rw-r--r--urpm/download.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b41a75d9..e6f47105 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,7 @@
- drop translated man pages (they are too old)
+- urpmi.addmedia:
+ o enhance parsing of urls with login:password for logins with "@"
+ so that password doesn't end up in urpmi.cfg
Version 4.10.17 - 30 November 2007, by Pascal "Pixel" Rigaux
diff --git a/urpm/download.pm b/urpm/download.pm
index 9766ded8..d368ab4e 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -628,7 +628,7 @@ sub requested_ftp_http_downloader {
sub parse_url_with_login {
my ($url) = @_;
- $url =~ m!([^:]*)://([^/:\@]*)(:([^/:\@]*))?\@([^/]*)(.*)! && $1 ne 'ssh' &&
+ $url =~ m!([^:]*)://([^/:]*)(:([^/:\@]*))?\@([^/]*)(.*)! && $1 ne 'ssh' &&
{ proto => $1, login => $2, password => $4, machine => $5, dir => $6 };
}
sub url_obscuring_password {