summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/HTTPClient.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index 0d7b80cf8..224b32982 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -808,8 +808,15 @@ class HTTPClient {
function _postEncode($data){
$url = '';
foreach($data as $key => $val){
- if($url) $url .= '&';
- $url .= urlencode($key).'='.urlencode($val);
+ if (is_array($val)) {
+ foreach ($val as $k => $v) {
+ if($url) $url .= '&';
+ $url .= urlencode($key).'['.$k.']='.urlencode($v);
+ }
+ } else {
+ if($url) $url .= '&';
+ $url .= urlencode($key).'='.urlencode($val);
+ }
}
return $url;
}