diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-16 18:09:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-16 18:09:40 +0000 |
commit | 5b385a90e8f5c8acb4bae4b5fff1a30a95ea9e41 (patch) | |
tree | b3058bd0ea0aa0f842ec9c23c4301010672f8b58 /mdkapplet-enterprise-update-helper | |
parent | 474988c0e1c34f02226c906e3712af968f044710 (diff) | |
download | mgaonline-5b385a90e8f5c8acb4bae4b5fff1a30a95ea9e41.tar mgaonline-5b385a90e8f5c8acb4bae4b5fff1a30a95ea9e41.tar.gz mgaonline-5b385a90e8f5c8acb4bae4b5fff1a30a95ea9e41.tar.bz2 mgaonline-5b385a90e8f5c8acb4bae4b5fff1a30a95ea9e41.tar.xz mgaonline-5b385a90e8f5c8acb4bae4b5fff1a30a95ea9e41.zip |
(adding_media_failed) escape password because urpmi and its downloaders
do not like some characters
Diffstat (limited to 'mdkapplet-enterprise-update-helper')
-rwxr-xr-x | mdkapplet-enterprise-update-helper | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mdkapplet-enterprise-update-helper b/mdkapplet-enterprise-update-helper index 974b13c6..c18747c4 100755 --- a/mdkapplet-enterprise-update-helper +++ b/mdkapplet-enterprise-update-helper @@ -166,6 +166,7 @@ sub adding_media_failed { sub actually_add_enterprise_update_medium { my ($ref, $password, $arch) = @_; + $password = uri_escape($password); my @options = ({ sensitive_arguments => 1 }, 'urpmi.addmedia', '--xml-info', 'always'); my $uri = "https://" . uri_escape($ref->{data}{email}) . ":$password\@download.mandriva.com/$version/rpms/$arch/"; run_program::raw(@options, '--update', '--distrib', $uri); |