From c43b2ab774596baa43702c085d46dd17a663f96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Wed, 8 Feb 2023 10:42:15 +0100 Subject: [PATCH] Make message field optional for all contact forms --- cgi-bin/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/form.py b/cgi-bin/form.py index 374d67d..6a2b010 100755 --- a/cgi-bin/form.py +++ b/cgi-bin/form.py @@ -170,7 +170,7 @@ if not isinstance(hcaptcha_data, Mapping) or not hcaptcha_data.get("success", Fa # form (see the match block below). contact_name = get_form_value("contactname") contact_email = get_form_value("contactemail") -message = get_form_value("message") +message = get_form_value("message", "[Keine Nachricht hinterlassen]") attachment: Optional[tuple[str, bytes]] = None ticket_details = collections.OrderedDict()