From 475ebcf9e3f799fcddf295425cce57ac0e7fd8f4 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 10 Jun 2017 09:42:53 +0200 Subject: [PATCH] Fix security issue --- RestControllers/searchController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RestControllers/searchController.php b/RestControllers/searchController.php index 74cc646..19fa0e6 100644 --- a/RestControllers/searchController.php +++ b/RestControllers/searchController.php @@ -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");