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