Skip to content

Commit

Permalink
Fix file_serving.download() for Chinese characters bug.
Browse files Browse the repository at this point in the history
git-svn-id: https://uliweb.googlecode.com/svn/trunk@953 14287918-b64d-0410-abb6-a92efa0c2026
  • Loading branch information
limodou committed Jul 12, 2012
1 parent ad4926c commit c968a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Uliweb Change Log
#. Fix generic.py fields_convert_map initialization bug #. Fix generic.py fields_convert_map initialization bug
#. Fix template get_text() bug, add inherit_tags parameter to it, and if it's False, #. Fix template get_text() bug, add inherit_tags parameter to it, and if it's False,
will use default begin and end tag string. will use default begin and end tag string.
#. Fix file_serving.download() for Chinese characters bug.


0.1.2 Version 0.1.2 Version
----------------- -----------------
Expand Down
2 changes: 1 addition & 1 deletion uliweb/contrib/upload/__init__.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def file_serving(filename):
alt_filename = filename alt_filename = filename
else: else:
alt_filename = urllib2.unquote(alt_filename) alt_filename = urllib2.unquote(alt_filename)
_filename = get_filename(filename, True, convert=False) _filename = get_filename(filename, False, convert=False)
x_filename = filename x_filename = filename
return get_backend().download(alt_filename, real_filename=_filename, x_filename=x_filename) return get_backend().download(alt_filename, real_filename=_filename, x_filename=x_filename)


Expand Down

0 comments on commit c968a7e

Please sign in to comment.