From 3eccf103a300bfb9e76da41582f698b0eb18afea Mon Sep 17 00:00:00 2001 From: Jiri Vrany Date: Fri, 30 Jan 2026 09:28:37 +0100 Subject: [PATCH] Fixe nested `
` elements in dashboard tables causing delete button to fail on the first row Delete actions reverted from POST forms to GET links with CSRF token passed as URL query parameter CSRF protection preserved via manual `validate_csrf` check in delete endpoints --- CHANGELOG.md | 7 +++++++ flowapp/__about__.py | 2 +- flowapp/templates/macros.html | 36 ++++++++++++----------------------- flowapp/views/rules.py | 20 +++++++++++++++++-- flowapp/views/whitelist.py | 11 ++++++++++- 5 files changed, 48 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4929840..dad22de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to ExaFS will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.2.1] - 2026-01-30 + +### Fixed +- Fixed nested `` elements in dashboard tables causing delete button to fail on the first row +- Delete actions reverted from POST forms to GET links with CSRF token passed as URL query parameter +- CSRF protection preserved via manual `validate_csrf` check in delete endpoints + ## [1.2.0] - 2026-01-29 ### Security diff --git a/flowapp/__about__.py b/flowapp/__about__.py index da7547d..6cbfe4c 100755 --- a/flowapp/__about__.py +++ b/flowapp/__about__.py @@ -1,4 +1,4 @@ -__version__ = "1.2.0" +__version__ = "1.2.1" __title__ = "ExaFS" __description__ = "Tool for creation, validation, and execution of ExaBGP messages." __author__ = "CESNET / Jiri Vrany, Petr Adamec, Josef Verich, Jakub Man" diff --git a/flowapp/templates/macros.html b/flowapp/templates/macros.html index a8495e8..1fb4862 100644 --- a/flowapp/templates/macros.html +++ b/flowapp/templates/macros.html @@ -52,12 +52,9 @@ - - - -
+ + + {% endif %} {% if rule.comment %} - + + + {% if rule.community.id in allowed_communities %} -
- - -
+ + + {% endif %} {% endif %} {% if rule.comment %} @@ -162,12 +153,9 @@ -
- - -
+ + + {% endif %} {% if rule.comment %}