sanitize search input
This commit is contained in:
@@ -27,8 +27,8 @@ class SearchController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function execute()
|
public function execute()
|
||||||
{
|
{
|
||||||
$keyword = trim($this->request->getParam('text-input-value'));
|
$keyword = Helper::sanitize($this->request->getParam('text-input-value'));
|
||||||
$site = trim($this->request->getParam('select-value-search'));
|
$site = Helper::sanitize($this->request->getParam('select-value-search'));
|
||||||
$this->search->setSite($site);
|
$this->search->setSite($site);
|
||||||
$data = $this->search->go($keyword);
|
$data = $this->search->go($keyword);
|
||||||
$resp['title'] = ['title', 'seeders', 'info', 'actions'];
|
$resp['title'] = ['title', 'seeders', 'info', 'actions'];
|
||||||
|
|||||||
Reference in New Issue
Block a user