From: Byron Jones Date: Mon, 9 Mar 2015 08:15:12 +0000 (+0800) Subject: Bug 1139755: Fix 'Use of uninitialized value' warning X-Git-Tag: release-5.1.1~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f5413655f09c5714ac1b6fe5a34e5b38db3e9f2;p=thirdparty%2Fbugzilla.git Bug 1139755: Fix 'Use of uninitialized value' warning --- diff --git a/Bugzilla/WebService/Util.pm b/Bugzilla/WebService/Util.pm index 5d7dd7dd67..4eae66bd37 100644 --- a/Bugzilla/WebService/Util.pm +++ b/Bugzilla/WebService/Util.pm @@ -275,7 +275,7 @@ sub fix_credentials { # This allows callers to keep credentials out of GET request query-strings if ($cgi) { foreach my $field (keys %{ X_HEADERS() }) { - next if exists $params->{X_HEADERS->{$field}} || $cgi->http($field) eq ''; + next if exists $params->{X_HEADERS->{$field}} || $cgi->http($field) // '' eq ''; $params->{X_HEADERS->{$field}} = uri_unescape($cgi->http($field)); } }