Add CSRF check to search

Doesn't hurt to have a check on this one as well.
This commit is contained in:
Lukas Reschke 2015-01-10 00:30:14 +01:00
parent 59a1d16d0f
commit 8ae1478288
1 changed files with 2 additions and 1 deletions

View File

@ -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'])) {