summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-06-25 15:01:14 -0400
committerBart Visscher <bartv@thisnet.nl>2012-06-27 01:05:36 +0200
commit578b8a9da1a1a0bb28c3f73845dc1e36b99f096d (patch)
treeb49b8e53a8d617406cd16670afd02c1730c0b527 /core/ajax
parentb5961635eac898ee8a8c67aaa9f46fd91cbf53d0 (diff)
downloadnextcloud-server-578b8a9da1a1a0bb28c3f73845dc1e36b99f096d.tar.gz
nextcloud-server-578b8a9da1a1a0bb28c3f73845dc1e36b99f096d.zip
$_POST variables should be $_GET for fetch
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 3582f8596b9..c9bee6a7ed8 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -44,11 +44,11 @@ if (isset($_POST['action'])) {
} else if (isset($_GET['fetch'])) {
switch ($_GET['fetch']) {
case 'getItemsSharedStatuses':
- $return = OCP\Share::getItemsSharedStatuses($_POST['itemType']);
+ $return = OCP\Share::getItemsSharedStatuses($_GET['itemType']);
($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
break;
case 'getItemShared':
- $return = OCP\Share::getItemShared($_POST['itemType'], $_POST['item']);
+ $return = OCP\Share::getItemShared($_GET['itemType'], $_GET['item']);
($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
break;
case 'getShareWith':