From 37c27c02139ae4a462e1705bda9360b23eb835b3 Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Sun, 31 May 2026 05:38:41 +0200 Subject: [PATCH] fix: preserve falsy values in escapeHtml --- frontend/templates/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/templates/search.html b/frontend/templates/search.html index 8f986b38..28cb0dfc 100644 --- a/frontend/templates/search.html +++ b/frontend/templates/search.html @@ -298,7 +298,7 @@ } function escapeHtml(str) { - if (!str) return ''; + if (str === null || str === undefined) return ''; return String(str) .replace(/&/g, '&') .replace(/