Skip to content
Snippets Groups Projects
Commit ddf4d2bd authored by Erik Johnston's avatar Erik Johnston
Browse files

Consistency

parent 66ec6cf9
No related branches found
No related tags found
No related merge requests found
...@@ -155,9 +155,9 @@ class BaseMediaResource(Resource): ...@@ -155,9 +155,9 @@ class BaseMediaResource(Resource):
# If there isn't check for an ascii name. # If there isn't check for an ascii name.
if not upload_name: if not upload_name:
upload_name = params.get("filename", None) upload_name_ascii = params.get("filename", None)
if upload_name and not is_ascii(upload_name): if upload_name_ascii and is_ascii(upload_name_ascii):
upload_name = None upload_name = upload_name_ascii
if upload_name: if upload_name:
upload_name = urlparse.unquote(upload_name) upload_name = urlparse.unquote(upload_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment