Browse Source

Always send a POST body

remotes/origin/ldap_group_count
Robin Appelman 12 years ago
committed by Bjoern Schiessle
parent
commit
9670d3e98b
  1. 6
      apps/files_sharing/lib/external/scanner.php

6
apps/files_sharing/lib/external/scanner.php

@ -28,10 +28,8 @@ class Scanner extends \OC\Files\Cache\Scanner {
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
if ($password) {
curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query(array('password' => $password)));
}
curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query(array('password' => $password)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);

Loading…
Cancel
Save