From 10be9637e702ee4b5131c5cba4d32bce799afe03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Sun, 22 May 2022 21:39:48 +0200 Subject: [PATCH] Fix form attachment type for "Computerantrag" form --- 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 f0da423..ddb8694 100755 --- a/cgi-bin/form.py +++ b/cgi-bin/form.py @@ -165,7 +165,7 @@ match request_uri: ticket_details["Adresse"] = get_form_value("addressline") ticket_details["PLZ"] = get_form_value("postalcode") ticket_details["Stadt"] = get_form_value("city") - attachment = get_form_value("document") + attachment = get_form_value("document", cast=bytes) # Note: the actual form contains a checkbox for whether the user has # read the guidelines, but we don't actually bother checking that here.