mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add CSRF checks
This commit is contained in:
parent
bd91ee4d22
commit
c04aa8d6a9
3 changed files with 8 additions and 2 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue