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

None check the correct variable

parent f02532ba
No related branches found
No related tags found
No related merge requests found
......@@ -150,8 +150,9 @@ class BaseMediaResource(Resource):
upload_name = None
else:
upload_name_utf8 = params.get("filename*", None)
if upload_name and upload_name_utf8.lower().startswith("utf-8''"):
upload_name = upload_name_utf8[7:]
if upload_name_utf8:
if upload_name_utf8.lower().startswith("utf-8''"):
upload_name = upload_name_utf8[7:]
if upload_name:
upload_name = urlparse.unquote(upload_name)
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment