mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
bug fix: allow file with spaces to be uploaded
This commit is contained in:
@@ -54,13 +54,6 @@ class secMiddleware:
|
||||
if request.path.find('gitNotify') > -1:
|
||||
break
|
||||
|
||||
# if request.path.find('users') > -1 or request.path.find('firewall') > -1 or request.path.find('servicesAction') > -1 or request.path.find('sslForHostName') > -1:
|
||||
# logging.writeToFile(request.body)
|
||||
# final_dic = {'error_message': "Data supplied is not accepted.",
|
||||
# "errorMessage": "Data supplied is not accepted."}
|
||||
# final_json = json.dumps(final_dic)
|
||||
# return HttpResponse(final_json)
|
||||
|
||||
if type(value) == str or type(value) == bytes:
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user