From 864fd7f904b59fd6f29d2f6d63c86498f031bb75 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 2 Apr 2020 19:44:51 -0700 Subject: [PATCH] [MOSS] CIV-01-001 - Add security check to ensure full deletion Some admin workflows don't handle implicit deletions. This guard ensures that deletion is complete. --- CRM/Utils/Check/Component/Security.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CRM/Utils/Check/Component/Security.php b/CRM/Utils/Check/Component/Security.php index 3a17c834fd..2c79192a25 100644 --- a/CRM/Utils/Check/Component/Security.php +++ b/CRM/Utils/Check/Component/Security.php @@ -223,6 +223,16 @@ class CRM_Utils_Check_Component_Security extends CRM_Utils_Check_Component { "{$civicrm_root}/packages/html2text/class.html2text.inc", \Psr\Log\LogLevel::CRITICAL, ], + [ + // MOSS CIV-01-002: The "demo.html" is problematic. Other unnecessary files should be deleted as a precaution. Consider deleting the folder and re-running 'composer install'. + Civi::paths()->getPath('[civicrm.bower]/google-code-prettify/styles/demo.html'), + \Psr\Log\LogLevel::CRITICAL, + ], + [ + // MOSS CIV-01-002: Certain QUnit addons are problematic. Other unnecessary files should be deleted as a precaution. Consider deleting the folder and re-running 'composer install'. + Civi::paths()->getPath('[civicrm.bower]/qunit/addons'), + \Psr\Log\LogLevel::CRITICAL, + ], ]; foreach ($files as $file) { if (file_exists($file[0])) { -- 2.25.1