Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't fail on obscure chars in filename

  • Loading branch information...
commit df1dc031090126fc5ee132b9527e182fa5f15005 1 parent 0cb768b
@tomgross tomgross authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  CHANGES.rst
  2. +1 −1  src/plone/app/blob/field.py
View
3  CHANGES.rst
@@ -4,7 +4,8 @@ Changelog
1.5.6 (unreleased)
------------------
-- Nothing changed yet.
+- Don't fail on obsucure chars in filename
+ [tomgross]
1.5.5 (2012-11-29)
View
2  src/plone/app/blob/field.py
@@ -87,7 +87,7 @@ def index_html(self, REQUEST=None, RESPONSE=None, charset='utf-8', disposition='
filename = self.getFilename()
if filename is not None:
if not isinstance(filename, unicode):
- filename = unicode(filename, charset)
+ filename = unicode(filename, charset, errors="ignore")
filename = IUserPreferredFileNameNormalizer(REQUEST).normalize(
filename)
header_value = contentDispositionHeader(
Please sign in to comment.
Something went wrong with that request. Please try again.