summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-01-07 16:34:51 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-01-07 16:36:13 +0100
commite9e7ee67d373e138b4a9749f9e9a7847a7d3875d (patch)
treec7fe6bcbd1583ccc7dd6bb2a0998e498fa809d36 /core
parentb6f63e9b3d8554e1d7ed45a4dbc224a38bc7dfa8 (diff)
downloadnextcloud-server-e9e7ee67d373e138b4a9749f9e9a7847a7d3875d.tar.gz
nextcloud-server-e9e7ee67d373e138b4a9749f9e9a7847a7d3875d.zip
shareType and permissions are integers
Diffstat (limited to 'core')
-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 2831d42a367..1a2faa75dac 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -73,9 +73,9 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$return = OCP\Share::setPermissions(
$_POST['itemType'],
$_POST['itemSource'],
- $_POST['shareType'],
+ (int)$_POST['shareType'],
$_POST['shareWith'],
- $_POST['permissions']
+ (int)$_POST['permissions']
);
($return) ? OC_JSON::success() : OC_JSON::error();
}