From d370bbc3d3550bb5c6015215c9af48a812e240e9 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 08 Jun 2012 05:43:10 -0400 Subject: [PATCH] Implemented: FS#2280 - Extend the tform library to apply filters on form values --- interface/web/dashboard/ajax_get_json.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/interface/web/dashboard/ajax_get_json.php b/interface/web/dashboard/ajax_get_json.php index 817853d..b134a84 100644 --- a/interface/web/dashboard/ajax_get_json.php +++ b/interface/web/dashboard/ajax_get_json.php @@ -42,7 +42,7 @@ if($type == 'globalsearch'){ - $q = $app->db->quote($_GET["q"]); + $q = $app->db->quote(trim($_GET["q"])); $authsql = " AND ".$app->tform->getAuthSQL('r'); $modules = explode(',', $_SESSION['s']['user']['modules']); -- Gitblit v1.9.1