From: Lukas Reschke Date: Fri, 9 Jan 2015 23:30:14 +0000 (+0100) Subject: Add CSRF check to search X-Git-Tag: v8.0.0alpha2~6^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ae1478288ec68a046c01828ad428a40645ce37b;p=nextcloud-server.git Add CSRF check to search Doesn't hurt to have a check on this one as well. --- diff --git a/search/ajax/search.php b/search/ajax/search.php index 5bd810aacfd..2bafe65302b 100644 --- a/search/ajax/search.php +++ b/search/ajax/search.php @@ -22,7 +22,8 @@ */ // Check if we are a user -\OC_JSON::checkLoggedIn(); +\OCP\JSON::checkLoggedIn(); +\OCP\JSON::callCheck(); \OC::$server->getSession()->close(); if (isset($_GET['query'])) {