aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-04 00:56:17 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-04 00:56:17 +0200
commitbc17794bb03c0083e43d219e24a92e3e51769223 (patch)
treed002b43e0cf4d02e98977e729bd7e09c18ba09dc /lib/AdminPanel
parentcb5c7ea44a31b39adec99e7602c10ad7fd8aa152 (diff)
parentab285ca850f4ee2c7ea5bcb50039bdffe89a537c (diff)
downloadmanatools-bc17794bb03c0083e43d219e24a92e3e51769223.tar
manatools-bc17794bb03c0083e43d219e24a92e3e51769223.tar.gz
manatools-bc17794bb03c0083e43d219e24a92e3e51769223.tar.bz2
manatools-bc17794bb03c0083e43d219e24a92e3e51769223.tar.xz
manatools-bc17794bb03c0083e43d219e24a92e3e51769223.zip
Merge branch 'master' of ssh://git.mageia.org/software/adminpanel
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/Module/Proxy.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/AdminPanel/Module/Proxy.pm b/lib/AdminPanel/Module/Proxy.pm
index c8011065..afe77361 100644
--- a/lib/AdminPanel/Module/Proxy.pm
+++ b/lib/AdminPanel/Module/Proxy.pm
@@ -186,8 +186,15 @@ sub _manageProxyDialog {
my $label_width = 25;
my $inputfield_width = 45;
# getVarsFromSh returns an empty hash if no vars are defined
+ # possible alternatives:
+ # . Config::Auto::parse
my $proxy_curr_settings = { getVarsFromSh('/etc/profile.d/proxy.sh') };
- my $httpsProxyEqualToHttpProxy = 1 if(($proxy_curr_settings->{http_proxy} eq $proxy_curr_settings->{https_proxy})&&($proxy_curr_settings->{http_proxy} ne ""));
+ my $httpsProxyEqualToHttpProxy = 0;
+ if((defined($proxy_curr_settings->{http_proxy}) && defined($proxy_curr_settings->{https_proxy}))&&
+ (($proxy_curr_settings->{http_proxy} eq $proxy_curr_settings->{https_proxy}) &&
+ ($proxy_curr_settings->{http_proxy} ne ""))){
+ $httpsProxyEqualToHttpProxy = 1;
+ }
#
# @layout