Merge pull request #13225 from owncloud/add-csrf-check

Add CSRF check to search
This commit is contained in:
Morris Jobke 2015-01-10 16:31:45 +01:00
commit 49ed2ebb2c
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
*/ */
// Check if we are a user // Check if we are a user
\OC_JSON::checkLoggedIn(); \OCP\JSON::checkLoggedIn();
\OCP\JSON::callCheck();
\OC::$server->getSession()->close(); \OC::$server->getSession()->close();
if (isset($_GET['query'])) { if (isset($_GET['query'])) {