From 333c5ec051ce12e4c167c5ca4393c28f643a1a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 23 Aug 2023 17:34:57 +0200 Subject: [PATCH] fix: Only display POSTed data length if it is a string --- website/web/templates/hostname_popup.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index c2a1700..012b759 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -202,10 +202,12 @@ {{ popup_icons_request(url['url_object'], tree_uuid) }} {% if url['url_object'].posted_data %} - - Download posted data -
- Posted data size: {{ sizeof_fmt(url['url_object'].posted_data|length) }} + + Download posted data +
+ {% if url['url_object'].posted_data is string %} + Posted data size: {{ sizeof_fmt(url['url_object'].posted_data|length) }} + {% endif %} {% endif %} {% if url['cookies_sent'] %}