Add CSRF check to search

Doesn't hurt to have a check on this one as well.
remotes/origin/fix-10825
Lukas Reschke 12 years ago
parent 59a1d16d0f
commit 8ae1478288
  1. 3
      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'])) {

Loading…
Cancel
Save