From 17ae6ca46f1d544d40e5bfb77ab6727975ba7e17 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Fri, 20 Oct 2017 10:51:58 +0530 Subject: [PATCH] CRM-21336: Custom file fields should display file name without hash --- 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 889399bc43..b23cacf128 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -890,7 +890,7 @@ HTACCESS; break; default: - $url = sprintf('%s', $url, basename($path)); + $url = sprintf('%s', $url, self::cleanFileName(basename($path))); break; } -- 2.25.1