From 711060d9c0ca3fe4c5e8b5fe1a4188d28892486c Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 6 Sep 2023 14:31:12 -0400 Subject: [PATCH] File - Update completely wrong docblock. Before: Function does the opposite of what the docblock says it does with .unknown suffixes. After: Docblock accurately says what the function does. --- CRM/Utils/File.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 37f2522a43..e030be409b 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -394,7 +394,10 @@ class CRM_Utils_File { } /** - * Remove the 32 bit md5 we add to the fileName also remove the unknown tag if we added it. + * Remove 32 bit md5 hash prepended to the file suffix. + * + * Note: if the filename was munged with an `.unknown` suffix, this removes + * the md5 but doesn't undo the munging or remove the `.unknown` suffix. * * @param $name * -- 2.25.1