From: deepak-srivastava Date: Wed, 22 Jul 2015 13:29:15 +0000 (+0100) Subject: 1. escape grid wise search input, 2. correctify search column numbers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=579ea9bc3684eb59e46862a18193508820ae7aae;p=civicrm-core.git 1. escape grid wise search input, 2. correctify search column numbers --- diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index 50e0d31cce..fea8d422ee 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -695,6 +695,8 @@ LIMIT {$offset}, {$rowCount} $join = ''; $where = array(); $searchData = CRM_Utils_Array::value('search', $_REQUEST); + $searchData['value'] = CRM_Utils_Type::escape($searchData['value'], 'String'); + if ($src || !empty($searchData['value']) ) { $src = $src ? $src : $searchData['value']; $where[] = " cc1.display_name LIKE '%{$src}%'"; diff --git a/templates/CRM/Contact/Page/DedupeFind.tpl b/templates/CRM/Contact/Page/DedupeFind.tpl index 003f95b049..a24057f8a3 100644 --- a/templates/CRM/Contact/Page/DedupeFind.tpl +++ b/templates/CRM/Contact/Page/DedupeFind.tpl @@ -38,11 +38,11 @@
- +
- +
@@ -85,7 +85,7 @@ - +