Add CSRF check to search
Doesn't hurt to have a check on this one as well.
This commit is contained in:
parent
59a1d16d0f
commit
8ae1478288
|
@ -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…
Reference in New Issue