mirror of
https://github.com/nextcloud/server.git
synced 2024-08-05 20:16:00 +02:00
Added a missing CSRF check
This commit is contained in:
parent
80aa44565b
commit
ac79fe649c
@ -21,6 +21,8 @@
|
|||||||
require_once '../../lib/base.php';
|
require_once '../../lib/base.php';
|
||||||
|
|
||||||
OC_JSON::checkLoggedIn();
|
OC_JSON::checkLoggedIn();
|
||||||
|
OCP\JSON::callCheck();
|
||||||
|
|
||||||
if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSource'])) {
|
if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSource'])) {
|
||||||
switch ($_POST['action']) {
|
switch ($_POST['action']) {
|
||||||
case 'share':
|
case 'share':
|
||||||
|
Loading…
Reference in New Issue
Block a user