diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-09-22 11:02:03 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-09-22 11:02:03 +0200 |
commit | ac79fe649ca35784cbeaefa4e82224fb338e495a (patch) | |
tree | 298edfd80153ae95a676073b432a1f670217677f | |
parent | 80aa44565b3933443e6b192970b6f321c15c1a69 (diff) | |
download | nextcloud-server-ac79fe649ca35784cbeaefa4e82224fb338e495a.tar.gz nextcloud-server-ac79fe649ca35784cbeaefa4e82224fb338e495a.zip |
Added a missing CSRF check
-rw-r--r-- | core/ajax/share.php | 2 |
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': |