Permalink
Browse files

Fix file_serving.download() for Chinese characters bug.

git-svn-id: https://uliweb.googlecode.com/svn/trunk@953 14287918-b64d-0410-abb6-a92efa0c2026
  • Loading branch information...
1 parent ad4926c commit c968a7ea59679268d7f338b5e59935eca8219f09 limodou committed Jul 12, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG.txt
  2. +1 −1 uliweb/contrib/upload/__init__.py
View
@@ -46,6 +46,7 @@ Uliweb Change Log
#. Fix generic.py fields_convert_map initialization bug
#. Fix template get_text() bug, add inherit_tags parameter to it, and if it's False,
will use default begin and end tag string.
+#. Fix file_serving.download() for Chinese characters bug.
0.1.2 Version
-----------------
@@ -198,7 +198,7 @@ def file_serving(filename):
alt_filename = filename
else:
alt_filename = urllib2.unquote(alt_filename)
- _filename = get_filename(filename, True, convert=False)
+ _filename = get_filename(filename, False, convert=False)
x_filename = filename
return get_backend().download(alt_filename, real_filename=_filename, x_filename=x_filename)

0 comments on commit c968a7e

Please sign in to comment.