Skip to content

Commit

Permalink
Fix XSS issue in handling attachment filename extension in mimetype m…
Browse files Browse the repository at this point in the history
…ismatch warning (#8193)
  • Loading branch information
alecpl committed Aug 31, 2021
1 parent c59a5ca commit faf99bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -11,6 +11,7 @@ CHANGELOG Roundcube Webmail
- Fix handling of custom sender addresses with names (#8106)
- Fix shift + drag'n'drop menu not working in Elastic skin with Chrome browser (#8107)
- Fix Firefox infinate loading display on mail screen (#8128)
- Fix XSS issue in handling attachment filename extension in mimetype mismatch warning (#8193)

RELEASE 1.4.11
--------------
Expand Down
4 changes: 2 additions & 2 deletions program/steps/mail/get.inc
Expand Up @@ -187,8 +187,8 @@ if (empty($_GET['_thumb']) && $attachment->is_valid()) {
$RCMAIL->gettext(array(
'name' => 'attachmentvalidationerror',
'vars' => array(
'expected' => $mimetype . ($file_extension ? " (.$file_extension)" : ''),
'detected' => $real_mimetype . ($extensions[0] ? " (.$extensions[0])" : ''),
'expected' => $mimetype . (!empty($file_extension) ? rcube::Q(" (.{$file_extension})") : ''),
'detected' => $real_mimetype . (!empty($extensions[0]) ? " (.{$extensions[0]})" : ''),
)
)
),
Expand Down

0 comments on commit faf99bf

Please sign in to comment.