Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#7460 closed defect (bug) (fixed)

Null input to http_build_query in http.php

Reported by: johnhennmacc's profile johnhennmacc Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: 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 16 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)

@santosj
16 years ago

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

#1 @santosj
16 years ago

See also #4779.

#2 @santosj
16 years ago

  • Keywords has-patch added

#3 @ryan
16 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.