diff options
author | David Lawrence <dkl@mozilla.com> | 2015-11-03 23:22:31 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-11-03 23:22:31 +0100 |
commit | b5271cab904a4802b04caa5cf3f08d8d80272183 (patch) | |
tree | 1e6d13b5f68fd22a069161e431cd5a418d780ce6 | |
parent | 2c083757e24bfefa716c113531bd67e3f75839c6 (diff) | |
download | bugzilla-b5271cab904a4802b04caa5cf3f08d8d80272183.tar.gz bugzilla-b5271cab904a4802b04caa5cf3f08d8d80272183.tar.xz |
Bug 1220734 - Use of uninitialized value $proxies[0] in string eq at Bugzilla/Util.pm line 315.
-rw-r--r-- | Bugzilla/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 19444082f..2703a542e 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -312,7 +312,7 @@ sub remote_ip { my @x_forwarded_for = split(/[\s,]+/, $ENV{HTTP_X_FORWARDED_FOR} // ''); return $remote_ip unless @x_forwarded_for; - return $x_forwarded_for[0] if $proxies[0] eq '*'; + return $x_forwarded_for[0] if @proxies && $proxies[0] eq '*'; return $remote_ip if none { $_ eq $remote_ip } @proxies; foreach my $ip (reverse @x_forwarded_for) { |