aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-13 15:28:35 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-14 10:22:38 +0200
commit9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574 (patch)
tree414934cb3ef744ea2ed73f238396c6be35a2cb76 /apps
parentbe93b0d01dbd488b242b76f1c32ae03caed90a52 (diff)
downloadnextcloud-server-9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574.tar.gz
nextcloud-server-9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574.zip
Always send a POST body
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/external/scanner.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/external/scanner.php b/apps/files_sharing/lib/external/scanner.php
index 8fb8683ed92..7381450521e 100644
--- a/apps/files_sharing/lib/external/scanner.php
+++ b/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);