CRM-13554
authorDonald A. Lobo <lobo@civicrm.org>
Wed, 16 Oct 2013 19:35:06 +0000 (12:35 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Wed, 16 Oct 2013 19:35:06 +0000 (12:35 -0700)
----------------------------------------
* CRM-13554: Improve string validation in the query engine
  http://issues.civicrm.org/jira/browse/CRM-13554

CRM/Contact/BAO/Query.php

index 381d4d2b8f8367facba8073f170e7819552a7c23..99942bff48bf7762001972f9d2f2fb9a837d622a 100644 (file)
@@ -4001,7 +4001,7 @@ civicrm_relationship.start_date > {$today}
     }
     if ($row_count > 0 && $offset >= 0) {
       $offset = CRM_Utils_Type::escape($offset, 'Int');
-      $rowCount = CRM_Utils_Type::escape($rowCount, 'Int');
+      $rowCount = CRM_Utils_Type::escape($row_count, 'Int');
       $sql .= " LIMIT $offset, $row_count ";
     }