Skip to content

Commit

Permalink
Issue civicrm#316: Ensure Container caches have safe prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xurizaemon committed Aug 10, 2018
1 parent 8720352 commit 76e697a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Utils/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ public static function getCacheSettings($cachePlugin) {
public static function create($params = array()) {
$types = (array) $params['type'];

if (!empty($params['name'])) {
$params['name'] = CRM_Core_BAO_Cache::cleanKey($params['name']);
}

foreach ($types as $type) {
switch ($type) {
case '*memory*':
Expand Down

0 comments on commit 76e697a

Please sign in to comment.