]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1139755: Fix 'Use of uninitialized value' warning
authorByron Jones <glob@mozilla.com>
Mon, 9 Mar 2015 08:15:12 +0000 (16:15 +0800)
committerByron Jones <glob@mozilla.com>
Mon, 9 Mar 2015 08:15:12 +0000 (16:15 +0800)
Bugzilla/WebService/Util.pm

index 5d7dd7dd67ecf2707b62c986541c08c822c5ba51..4eae66bd3715673f797731cb34e75c63be219d22 100644 (file)
@@ -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));
         }
     }