Skip to content

Commit

Permalink
bug fix: phpmyadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Nov 4, 2024
1 parent ba0831f commit 2041dea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CyberCP/secMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ def __call__(self, request):

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
Expand Down Expand Up @@ -207,4 +212,6 @@ def __call__(self, request):
response['X-Content-Type-Options'] = "nosniff"
response['Referrer-Policy'] = "same-origin"



return response

1 comment on commit 2041dea

@nadsnir
Copy link

@nadsnir nadsnir commented on 2041dea Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the last update (even several commits before this one), I receive an error trying to log in:
{"error_message": "Session reuse detected, IPAddress logged.", "errorMessage": "Session reuse detected, IPAddress logged."}

Also, it seems like csf settings are reset with each update, which sometimes blocks me from using SSH (different port), cloudflared, tailscale and others, and I need to set the ports again.

Please sign in to comment.