usmannasir
2025-07-03 15:05:08 +05:00
parent 91a19b123d
commit 4f7d9e6959

View File

@@ -115,7 +115,7 @@ class secMiddleware:
logging.writeToFile(f'Key being scanned {str(key)}')
logging.writeToFile(f'Value being scanned {str(value)}')
if request.path.find('gitNotify') > -1:
if request.path.find('gitNotify') > -1 or pathActual.endswith('/webhook') or pathActual.endswith('/gitNotify'):
break
# Skip validation for ports key to allow port ranges with colons