Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions webinterface/analysis/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-2.0-only
from flask import Blueprint
from flask import render_template
from flask import escape
import json
from collections import defaultdict
from typing import Dict, List
Expand Down Expand Up @@ -330,10 +331,10 @@ def set_alerts(ip, timewindow):

data.append(
{
"alert": timestamp,
"alert_id": alert_id,
"profileid": profile_ip,
"timewindow": twid,
"alert": escape(timestamp),
"alert_id": escape(alert_id),
"profileid": escape(profile_ip),
"timewindow": escape(twid),
"evidence_count": evidence_count,
}
)
Expand Down
Loading