Commit 1f541365 authored by Byron Jones's avatar Byron Jones

Bug 1139755: Fix 'Use of uninitialized value' warning

parent de0781fd
......@@ -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));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment