Skip to content

Commit

Permalink
Merge pull request SimpleMachines#7824 from BrickOzp/html_attachment
Browse files Browse the repository at this point in the history
Fix attachment names with html entities.
  • Loading branch information
Sesquipedalian authored Feb 11, 2025
2 parents bd3f465 + 8917498 commit 3483d45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/ShowAttachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function showAttachment()
$file['mtime'] = $file['exists'] ? filemtime($file['filePath']) : 0;
$file['size'] = $file['exists'] ? filesize($file['filePath']) : 0;
$file['etag'] = $file['exists'] ? sha1_file($file['filePath']) : '';
$file['filename'] = un_htmlspecialchars($file['filename']);

// now get the thumbfile!
$thumbFile = array();
Expand Down

0 comments on commit 3483d45

Please sign in to comment.