Skip to content
Snippets Groups Projects
Commit c04aa8d6 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Add CSRF checks

parent bd91ee4d
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@
* later.
* See the COPYING-README file.
*/
OCP\JSON::callCheck();
$id = strip_tags($_POST['id']);
$idtype = strip_tags($_POST['idtype']);
$permission = (int) strip_tags($_POST['permission']);
......
......@@ -6,6 +6,8 @@
* See the COPYING-README file.
*/
OCP\JSON::callCheck();
$id = strip_tags($_POST['id']);
$idtype = strip_tags($_POST['idtype']);
switch($idtype){
......
......@@ -5,7 +5,9 @@
* later.
* See the COPYING-README file.
*/
OCP\JSON::callCheck();
$id = strip_tags($_POST['id']);
$idtype = strip_tags($_POST['idtype']);
switch($idtype){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment