Skip to content
Permalink
Browse files Browse the repository at this point in the history
Revert custom patch that can cause problems
  • Loading branch information
LukasReschke committed Jun 1, 2015
1 parent 0899f66 commit bf0f1a5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/files_external/3rdparty/Dropbox/OAuth/Curl.php
Expand Up @@ -72,8 +72,14 @@ public function fetch($uri, $arguments = array(), $method = 'GET', $httpHeaders
if (strtoupper($method) == 'POST') {
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_POST, true);
// if (is_array($arguments))
// $arguments=http_build_query($arguments);

//if (is_array($arguments))
// $arguments=http_build_query($arguments);
foreach ($arguments as $key => $value) {
if($value[0] === '@') {
exit();
}
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $arguments);
// $httpHeaders['Content-Length']=strlen($arguments);
} else {
Expand Down

0 comments on commit bf0f1a5

Please sign in to comment.