mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix: phpmyadmin
This commit is contained in:
@@ -99,9 +99,14 @@ class secMiddleware:
|
||||
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile('Request body detected.. scanning')
|
||||
logging.writeToFile(str(request.body))
|
||||
|
||||
# logging.writeToFile(request.body)
|
||||
data = json.loads(request.body)
|
||||
try:
|
||||
data = json.loads(request.body)
|
||||
except:
|
||||
data = request.POST
|
||||
|
||||
for key, value in data.items():
|
||||
if request.path.find('gitNotify') > -1:
|
||||
break
|
||||
@@ -207,4 +212,6 @@ class secMiddleware:
|
||||
response['X-Content-Type-Options'] = "nosniff"
|
||||
response['Referrer-Policy'] = "same-origin"
|
||||
|
||||
|
||||
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user