summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-11-03 23:22:31 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-11-03 23:22:31 +0100
commitb5271cab904a4802b04caa5cf3f08d8d80272183 (patch)
tree1e6d13b5f68fd22a069161e431cd5a418d780ce6 /Bugzilla
parent2c083757e24bfefa716c113531bd67e3f75839c6 (diff)
downloadbugzilla-b5271cab904a4802b04caa5cf3f08d8d80272183.tar.gz
bugzilla-b5271cab904a4802b04caa5cf3f08d8d80272183.tar.xz
Bug 1220734 - Use of uninitialized value $proxies[0] in string eq at Bugzilla/Util.pm line 315.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Util.pm2
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) {