]> source.dussan.org Git - nextcloud-server.git/commitdiff
[files_trashbin] Add CSRF token
authorLukas Reschke <lukas@statuscode.ch>
Sun, 3 Feb 2013 21:49:12 +0000 (22:49 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Sun, 3 Feb 2013 21:49:12 +0000 (22:49 +0100)
apps/files_trashbin/ajax/undelete.php

index a7bb5b9de2dfc969fa7e05e57f77b2b4434f13c6..4b23e618a1d4265bb02995d7ff4573053faf09cf 100644 (file)
@@ -1,8 +1,7 @@
 <?php 
 
-if(!OCP\User::isLoggedIn()) {\r
-       exit;\r
-}
+OCP\User::checkLoggedIn();
+OCP\JSON::callCheck();
 
 $files = $_REQUEST['files'];
 $dirlisting = $_REQUEST['dirlisting'];