From 47b046975b15a66992ac6e5d49b5513d10f80e3e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 25 Feb 2015 10:58:46 -0800 Subject: [PATCH] CRM-16005 - Check for dompdf using more file patterns --- CRM/Utils/Check/Security.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Check/Security.php b/CRM/Utils/Check/Security.php index 6552d0d1a3..4e43f0af77 100644 --- a/CRM/Utils/Check/Security.php +++ b/CRM/Utils/Check/Security.php @@ -210,7 +210,10 @@ class CRM_Utils_Check_Security { /** - * Check that some files are not present + * Check that some files are not present. + * + * These files have generally been deleted but Civi source tree but could be + * left online if one does a faulty upgrade. * * @return array of messages */ @@ -219,7 +222,9 @@ class CRM_Utils_Check_Security { $messages = array(); $files = array( - "{$civicrm_root}/packages/dompdf/dompdf.php", // CRM-16005 + "{$civicrm_root}/packages/dompdf/dompdf.php", // CRM-16005, upgraded from Civi <= 4.5.6 + "{$civicrm_root}/packages/vendor/dompdf/dompdf/dompdf.php", // CRM-16005, Civi >= 4.5.7 + "{$civicrm_root}/vendor/dompdf/dompdf/dompdf.php", // CRM-16005, Civi >= 4.6.0 ); foreach ($files as $file) { if (file_exists($file)) { -- 2.25.1