From 5ecc917ad702b2bc20b70d48895361655323327a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Tue, 9 May 2023 10:29:04 +0200 Subject: [PATCH] Remove another form disable check --- cgi-bin/form.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cgi-bin/form.py b/cgi-bin/form.py index c9fa895..dbf2a9a 100755 --- a/cgi-bin/form.py +++ b/cgi-bin/form.py @@ -62,7 +62,7 @@ match os.environ.get("REQUEST_METHOD", "").upper(): # For GET requests, serve the form that the user requested. The CSRF # token will be added here as well. - form_disabled = request_uri.startswith("/computer-beantragen/privat") + form_disabled = False print(f"Status: {200 if not form_disabled else 503}") print(f"Content-Type: text/html") @@ -311,4 +311,3 @@ try: print("") except Exception as e: fail("500 Internal Server Error", str(e)) -