dont print /csp_violations when bc of extension

master
Aevann 2022-12-27 07:20:32 +02:00
parent 512c864327
commit 844c58fe90
1 changed files with 3 additions and 1 deletions

View File

@ -339,5 +339,7 @@ def donate(v):
@limiter.limit("10/minute;50/day")
def csp_violations():
content = request.get_json(force=True)
print(json.dumps(content, indent=4, sort_keys=True), flush=True)
content = str(json.dumps(content, indent=4, sort_keys=True), flush=True)
if f'"source-file": "{SITE_FULL}' in content:
print(content)
return ''