From b64ae940696c6dd789c99cdd4c32336bfb9e76c2 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Sat, 23 May 2015 12:08:25 +0100 Subject: [PATCH] Fix search To test Before PR Enter any value in the filter column and you get an error After PR Make sure that text and numeric filters work --- .../components/com_patchtester/PatchTester/Model/PullsModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php index 006a004..69ebc78 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php @@ -128,7 +128,7 @@ class PullsModel extends \JModelDatabase if (!empty($search)) { - $searchid = $search; + $searchid = $db->quote($db->escape($search, true)); $search = $db->quote('%' . $db->escape($search, true) . '%'); $query->where( '(' . $db->quoteName('a.title') . ' LIKE ' . $search . ') OR ' .