Update server.py

This commit is contained in:
Namhyeon Go 2024-02-19 08:04:35 +09:00 committed by GitHub
parent f35b614325
commit 369e76b787
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,6 +168,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
# ID validation with K-Anonymity
pattern = r'[/@]([a-zA-Z0-9]{10})(?![a-zA-Z0-9])'
matches = re.findall(pattern, text)
print (matches)
if len(matches) > 0:
filtered = not all(map(validate_string_with_k_anonymity, matches))