Skip to content

Commit

Permalink
[26076] test for lower case pdf file extension of mail attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
huthomas committed Jan 8, 2024
1 parent 2c42a25 commit 5c18504
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void mouseUp(MouseEvent e) {
for (String string : documentsParts) {
Label label = new Label(attachmentsParent, SWT.NONE);
String tmpFile = AttachmentsUtil.toAttachment(string);
if (!tmpFile.endsWith(".pdf")) {
if (!tmpFile.toLowerCase().endsWith(".pdf")) {
MessageDialog.openWarning(getShell(), "Warnung", "Dokument " + FilenameUtils.getName(tmpFile)
+ " konnte nicht konvertiert werden, bzw. ist kein pdf.\nBitte prüfen ob ein editierbares Dokument versendet werden soll.");
}
Expand Down

0 comments on commit 5c18504

Please sign in to comment.