escape string to avoid fatal on search builder when sort name has an apostrophe

This commit is contained in:
Jon Goldberg 2019-03-18 17:59:47 -04:00
parent 8ef7bea74c
commit 01a199b445
No known key found for this signature in database
GPG Key ID: C2D2247364F9DB13

View File

@ -228,7 +228,7 @@ class CRM_ConstituentsOnly_BAO_ConstituentsOnly {
"'{$cid}'", "'{$cid}'",
"'{$cid}'", "'{$cid}'",
"'{$prevCacheKey}'", "'{$prevCacheKey}'",
"'" . $newRows[$cid]['sort_name'] . "')", "'" . CRM_Core_DAO::escapeString($newRows[$cid]['sort_name']) . "')",
]; ];
CRM_Core_BAO_PrevNextCache::setItem($prevCache); CRM_Core_BAO_PrevNextCache::setItem($prevCache);
} }