Fix security issue

This commit is contained in:
Pierre 2017-06-10 09:42:53 +02:00
parent 2840a1401c
commit 475ebcf9e3

View File

@ -14,6 +14,8 @@ class searchController
* @url POST /user/search
*/
public function searchDatabase(){
user_login_required();
//Check if the query was specified with the request
if(!isset($_POST['query']))
Rest_fatal_error(400, "Please specify search terms");