diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-01-10 16:31:45 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-01-10 16:31:45 +0100 |
commit | 49ed2ebb2c347627c3e4c0c462c6215cfe11d665 (patch) | |
tree | ebd83858eac3398bb4750873348a004eda1de4d9 | |
parent | ae3483299cc8bfc226d8fe2a2501fd32c745c745 (diff) | |
parent | 8ae1478288ec68a046c01828ad428a40645ce37b (diff) | |
download | nextcloud-server-49ed2ebb2c347627c3e4c0c462c6215cfe11d665.tar.gz nextcloud-server-49ed2ebb2c347627c3e4c0c462c6215cfe11d665.zip |
Merge pull request #13225 from owncloud/add-csrf-check
Add CSRF check to search
-rw-r--r-- | search/ajax/search.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/search/ajax/search.php b/search/ajax/search.php index 5bd810aacfd..2bafe65302b 100644 --- a/search/ajax/search.php +++ b/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'])) { |