From 1305c22b58abf81c28ee0eb32c4bd5fde4ce2a38 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 6 Feb 2014 16:42:00 -0800 Subject: [PATCH] CRM-14092 - isBrowsable - Defensive programming --- CRM/Utils/Check/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Check/Security.php b/CRM/Utils/Check/Security.php index bb076daa75..c08d12046d 100644 --- a/CRM/Utils/Check/Security.php +++ b/CRM/Utils/Check/Security.php @@ -256,7 +256,7 @@ class CRM_Utils_Check_Security { * @return bool */ public function isBrowsable($dir, $url) { - if (empty($dir) || empty($url)) { + if (empty($dir) || empty($url) || !is_dir($dir)) { return FALSE; } -- 2.25.1