Преглед изворни кода

Merge pull request #3883 from mbauskar/uncode-fixes

[hotfix] encode file name to unicode
version-14
Rushabh Mehta пре 8 година
committed by GitHub
родитељ
комит
223d692921
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      frappe/email/email_body.py

+ 1
- 1
frappe/email/email_body.py Прегледај датотеку

@@ -324,7 +324,7 @@ def add_attachment(fname, fcontent, content_type=None,
# Set the filename parameter
if fname:
attachment_type = 'inline' if inline else 'attachment'
part.add_header(b'Content-Disposition', attachment_type, filename=fname.encode('utf=8'))
part.add_header(b'Content-Disposition', attachment_type, filename=text_type(fname))
if content_id:
part.add_header(b'Content-ID', '<{0}>'.format(content_id))



Loading…
Откажи
Сачувај