Merge pull request #13225 from owncloud/add-csrf-check
Add CSRF check to search
This commit is contained in:
commit
49ed2ebb2c
|
@ -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'])) {
|
||||||
|
|
Loading…
Reference in New Issue