Skip to content

Commit 2aa0baa

Browse files
committed
Issues-104:force a browser to download files in email
1 parent e5a2850 commit 2aa0baa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vanilla/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public function renderQuote(): string {
117117
} elseif ($embedType == 'file') {
118118
$fileName = $data['name'] ?? "";
119119
$size = $data['size'] ?? "";
120+
if (function_exists('file_embed_process_url')) {
121+
$sanitizedUrl = file_embed_process_url($sanitizedUrl);
122+
}
120123
if($fileName && $size) {
121124
$formattedSize = Gdn_Upload::formatFileSize($size,2);
122125
return "<p><a href=\"$sanitizedUrl\">$fileName ($formattedSize)</a></p>";

0 commit comments

Comments
 (0)