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