Opened 5 years ago

Closed 5 years ago

#7460 closed defect (bug) (fixed)

Null input to http_build_query in http.php

Reported by: johnhennmacc Owned by: anonymous
Priority: normal Milestone: 2.7
Component: General Version:
Severity: normal Keywords: has-patch
Cc:

Description

With r8534, I get an error message like the following:

Warning: http_build_query() [function.http-build-query]: Parameter 1 expected to be Array or Object. Incorrect value given. in [blog path removed]/wp-includes/http.php on line 200

Removing the call to http_build_query removes the message but might have other side effects that I may not know about.

Attachments (1)

4779.r8535.diff (403 bytes) - added by santosj 5 years ago.
Tests for whether $body is an array or an object before running http_build_query() on $body. Based off of r8535

Download all attachments as: .zip

Change History (4)

santosj5 years ago

Tests for whether $body is an array or an object before running http_build_query() on $body. Based off of r8535

See also #4779.

  • Keywords has-patch added

comment:3   ryan5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8536]) Tests for whether is an array or an object before running http_build_query() on . Props santosj. fixes #7460 see #4779

Note: See TracTickets for help on using tickets.