mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 14:03:53 +01:00
None check the correct variable
This commit is contained in:
parent
f02532baad
commit
53c2eed862
1 changed files with 3 additions and 2 deletions
|
@ -150,8 +150,9 @@ class BaseMediaResource(Resource):
|
||||||
upload_name = None
|
upload_name = None
|
||||||
else:
|
else:
|
||||||
upload_name_utf8 = params.get("filename*", None)
|
upload_name_utf8 = params.get("filename*", None)
|
||||||
if upload_name and upload_name_utf8.lower().startswith("utf-8''"):
|
if upload_name_utf8:
|
||||||
upload_name = upload_name_utf8[7:]
|
if upload_name_utf8.lower().startswith("utf-8''"):
|
||||||
|
upload_name = upload_name_utf8[7:]
|
||||||
if upload_name:
|
if upload_name:
|
||||||
upload_name = urlparse.unquote(upload_name)
|
upload_name = urlparse.unquote(upload_name)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue