From: Bjoern Schiessle Date: Wed, 7 Jan 2015 15:34:51 +0000 (+0100) Subject: shareType and permissions are integers X-Git-Tag: v8.0.0alpha2~33^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9e7ee67d373e138b4a9749f9e9a7847a7d3875d;p=nextcloud-server.git shareType and permissions are integers --- 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(); }