From 8ae1478288ec68a046c01828ad428a40645ce37b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sat, 10 Jan 2015 00:30:14 +0100 Subject: [PATCH] Add CSRF check to search Doesn't hurt to have a check on this one as well. --- search/ajax/search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'])) { -- 2.39.5