Skip to content

Commit

Permalink
Merge pull request #11166 from JMAConsulting/CRM-21336
Browse files Browse the repository at this point in the history
CRM-21336: Custom file fields should display file name without hash
  • Loading branch information
colemanw authored Oct 23, 2017
2 parents 7c8d59c + 17ae6ca commit 4359e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ public static function getFileURL($path, $fileType, $url = NULL) {
break;

default:
$url = sprintf('<a href="%s">%s</a>', $url, basename($path));
$url = sprintf('<a href="%s">%s</a>', $url, self::cleanFileName(basename($path)));
break;
}

Expand Down

0 comments on commit 4359e03

Please sign in to comment.