summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Util.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2015-10-31 02:03:58 +0100
committerDylan William Hardison <dylan@hardison.net>2015-10-31 02:06:57 +0100
commit5852295860d51040f69bbaf957cc8ed6bfd7358b (patch)
treea0781afa608c45912a97c1b2ac3b75e0d8659f2b /Bugzilla/Util.pm
parentf03cb21e297f73fcfca9740ff8e2c525a745d7ad (diff)
downloadbugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.gz
bugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.xz
Bug 1218457 - Allow localconfig to override (force) certain data/params values
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r--Bugzilla/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index f793ed727..19444082f 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -308,7 +308,7 @@ sub correct_urlbase {
# Returns the real remote address of the client,
sub remote_ip {
my $remote_ip = $ENV{'REMOTE_ADDR'} || '127.0.0.1';
- my @proxies = split(/[\s,]+/, Bugzilla->params->{inbound_proxies});
+ my @proxies = split(/[\s,]+/, Bugzilla->get_param_with_override('inbound_proxies'));
my @x_forwarded_for = split(/[\s,]+/, $ENV{HTTP_X_FORWARDED_FOR} // '');
return $remote_ip unless @x_forwarded_for;