Skip to content

Commit

Permalink
sendmail: deal with MIME filenames in chinese or smilies
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho authored Sep 19, 2023
1 parent 1619125 commit 8ab6bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/zms/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ def sendMail(context, mto, msubject, mbody, REQUEST=None, mattach=None):
part = MIMEAudio(filedata, fileextn)
else:
part = MIMEApplication(filedata)
part.add_header('Content-Disposition', 'attachment; filename="%s"'%umlaut_quote(filename).replace(' ','_'))
part.add_header('Content-Disposition', 'attachment; filename="%s"'%url_quote(umlaut_quote(filename).replace(' ','_')))
mime_msg.attach(part)

# Get MailHost.
Expand Down

0 comments on commit 8ab6bb0

Please sign in to comment.