CRM_Contact_BAO_Query::searchQuery - Preserve $order until last minute (EVIL)
authorTim Otten <totten@civicrm.org>
Wed, 25 May 2016 01:01:18 +0000 (18:01 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 25 May 2016 01:04:52 +0000 (18:04 -0700)
commit6a489c2fa1068464b6e6646d4729dea9c520c6cb
tree3ab64ff0f7a0582817ee0a5938bca89ab7cec773
parent62d6d1c0839eceee82e07db767f361543ce97d44
CRM_Contact_BAO_Query::searchQuery - Preserve $order until last minute (EVIL)

Building on https://gist.github.com/mollux/7ffeb63f55ba0ba6180968d6d36f4745

This function does a lot of string-analysis on `$order`, and proper escaping
breaks this. However, the CRM_Utils_Type::escape() is quite clever about
validating and applying escaping.
CRM/Contact/BAO/Query.php