From d269912e3c39ab3f3ffd76511405bbb5bccaa686 Mon Sep 17 00:00:00 2001 From: Christopher Gervais Date: Sat, 3 Sep 2016 15:41:47 -0400 Subject: [PATCH] Fixes CRM-19308: Disallow false-y values for paths purged during cache clears. --- CRM/Utils/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.25.1