Changeset View
Changeset View
Standalone View
Standalone View
src/future/http/HTTPSFuture.php
Show First 20 Lines • Show All 517 Lines • ▼ Show 20 Lines | if (!$any_data && !$any_files) { | ||||
// No files or data, so just bail. | // No files or data, so just bail. | ||||
return null; | return null; | ||||
} | } | ||||
if (!$any_files) { | if (!$any_files) { | ||||
// If we don't have any files, just encode the data as a query string, | // If we don't have any files, just encode the data as a query string, | ||||
// make sure it's not including any files, and we're good to go. | // make sure it's not including any files, and we're good to go. | ||||
if (is_array($data)) { | if (is_array($data)) { | ||||
$data = http_build_query($data, '', '&'); | $data = phutil_build_http_querystring($data); | ||||
} | } | ||||
$this->checkForDangerousCURLMagic($data, $is_query_string = true); | $this->checkForDangerousCURLMagic($data, $is_query_string = true); | ||||
return $data; | return $data; | ||||
} | } | ||||
// If we've made it this far, we have some files, so we need to return | // If we've made it this far, we have some files, so we need to return | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |