Add CSRF checks
This commit is contained in:
parent
bd91ee4d22
commit
c04aa8d6a9
|
@ -6,6 +6,8 @@
|
|||
* 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){
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$id = strip_tags($_POST['id']);
|
||||
$idtype = strip_tags($_POST['idtype']);
|
||||
switch($idtype){
|
||||
|
|
Loading…
Reference in New Issue