mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
release v2.3.8
This commit is contained in:
@@ -54,16 +54,22 @@ class secMiddleware:
|
||||
pass
|
||||
|
||||
from plogical.processUtilities import ProcessUtilities
|
||||
|
||||
# if os.path.exists(ProcessUtilities.debugPath):
|
||||
# logging.writeToFile(request.build_absolute_uri())
|
||||
|
||||
FinalURL = request.build_absolute_uri().split('?')[0]
|
||||
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile(request.build_absolute_uri())
|
||||
logging.writeToFile(FinalURL)
|
||||
|
||||
|
||||
if FinalURL == '/' or FinalURL == '/verifyLogin' or FinalURL == '/logout':
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile(request.build_absolute_uri())
|
||||
|
||||
|
||||
# if os.path.exists(ProcessUtilities.debugPath):
|
||||
# logging.writeToFile(f'Final actual URL without QS {FinalURL}')
|
||||
|
||||
if request.method == 'POST' or request.method == 'OPTIONS':
|
||||
if request.method.lower() == 'post' or request.method.lower() == 'options':
|
||||
try:
|
||||
|
||||
# logging.writeToFile(request.body)
|
||||
|
||||
Reference in New Issue
Block a user