From 4efc30c63e2c372dc24ae91fca8d7128a350fe7a Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 19 Apr 2016 20:22:37 -0700 Subject: [PATCH] Escape search query text --- app/Http/Controllers/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index f50a47a9a4..3e30233f9d 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -1327,7 +1327,7 @@ class AssetsController extends Controller ->Hardware(); if (Input::has('search')) { - $assets = $assets->TextSearch(Input::get('search')); + $assets = $assets->TextSearch(e(Input::get('search'))); } if (Input::has('offset')) {