$_POST variables should be $_GET for fetch

remotes/origin/stable45
Michael Gapczynski 13 years ago committed by Bart Visscher
parent b5961635ea
commit 578b8a9da1
  1. 4
      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':

Loading…
Cancel
Save