From: Christopher Gervais Date: Sat, 3 Sep 2016 19:41:47 +0000 (-0400) Subject: Fixes CRM-19308: Disallow false-y values for paths purged during cache clears. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d269912e3c39ab3f3ffd76511405bbb5bccaa686;p=civicrm-core.git Fixes CRM-19308: Disallow false-y values for paths purged during cache clears. --- diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 485280bd74..d7fa4dd3a6 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -140,7 +140,7 @@ class CRM_Utils_File { */ public static function cleanDir($target, $rmdir = TRUE, $verbose = TRUE) { static $exceptions = array('.', '..'); - if ($target == '' || $target == '/') { + if ($target == '' || $target == '/' || !$target) { throw new Exception("Overly broad deletion"); }