summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-09-22 11:02:03 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-09-22 11:02:03 +0200
commitac79fe649ca35784cbeaefa4e82224fb338e495a (patch)
tree298edfd80153ae95a676073b432a1f670217677f
parent80aa44565b3933443e6b192970b6f321c15c1a69 (diff)
downloadnextcloud-server-ac79fe649ca35784cbeaefa4e82224fb338e495a.tar.gz
nextcloud-server-ac79fe649ca35784cbeaefa4e82224fb338e495a.zip
Added a missing CSRF check
-rw-r--r--core/ajax/share.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index b615cfd3541..446d4cc32ec 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -21,6 +21,8 @@
require_once '../../lib/base.php';
OC_JSON::checkLoggedIn();
+OCP\JSON::callCheck();
+
if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSource'])) {
switch ($_POST['action']) {
case 'share':