From 24c0261dafbdac30e9bd478607fe042a8433b6e7 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 20 Sep 2016 23:10:54 -0700 Subject: [PATCH] MultiHttpClient: Don't use wfArrayToCgi() http_build_query() should be functionally identical. Change-Id: Ia7d909e97a89d66dbe5187e9a0423e2ecf8561e8 --- includes/libs/MultiHttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/MultiHttpClient.php b/includes/libs/MultiHttpClient.php index 320a0b687a..fdcbf4904b 100644 --- a/includes/libs/MultiHttpClient.php +++ b/includes/libs/MultiHttpClient.php @@ -351,7 +351,7 @@ class MultiHttpClient { // In PHP 5.2 and later, '@' is interpreted as a file upload if POSTFIELDS // is an array, but not if it's a string. So convert $req['body'] to a string // for safety. - $req['body'] = wfArrayToCgi( $req['body'] ); + $req['body'] = http_build_query( $req['body'] ); } curl_setopt( $ch, CURLOPT_POSTFIELDS, $req['body'] ); } else { -- 2.20.1