From: Peter Müller Date: Sat, 11 Apr 2020 10:20:01 +0000 (+0200) Subject: Pakfire: do not leak upstream proxy password in log messages X-Git-Tag: v2.25-core145~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf33650eb354795b7a5a19bf356f563908075cca;p=ipfire-2.x.git Pakfire: do not leak upstream proxy password in log messages Signed-off-by: Peter Müller Reviewed-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index 17a420c33c..4d5c6219ab 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -162,7 +162,7 @@ sub fetchfile { logger("DOWNLOAD INFO: Upstream proxy: \"$proxysettings{'UPSTREAM_PROXY'}\""); if ($proxysettings{'UPSTREAM_USER'}) { $ua->proxy(["http", "https"], "http://$proxysettings{'UPSTREAM_USER'}:$proxysettings{'UPSTREAM_PASSWORD'}@"."$proxysettings{'UPSTREAM_PROXY'}/"); - logger("DOWNLOAD INFO: Logging in with: \"$proxysettings{'UPSTREAM_USER'}\" - \"$proxysettings{'UPSTREAM_PASSWORD'}\""); + logger("DOWNLOAD INFO: Logging in with \"$proxysettings{'UPSTREAM_USER'}\" against \"$proxysettings{'UPSTREAM_PROXY'}\""); } else { $ua->proxy(["http", "https"], "http://$proxysettings{'UPSTREAM_PROXY'}/"); }