From 016686d2542d99993525a29dd97807e46614e1eb Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 22 Feb 2021 09:47:56 +0100 Subject: [PATCH] Add a hidden field, not shown to humans, to see if we can catch dumb scripts out this way --- src/site.rkt | 5 ++++- static/style.css | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/site.rkt b/src/site.rkt index 9bf0683..e26a20d 100644 --- a/src/site.rkt +++ b/src/site.rkt @@ -430,7 +430,10 @@ ,(form-group 0 2 `(p ((class "form-control-static")) (b "Answer:")) - 0 10 (text-input "question_answer")))) + 0 10 (text-input "question_answer")) + ,(text-input "body" + #:extra-classes + '("not-shown-to-humans")))) ,(form-group 4 5 (primary-button "Email me a code")))) `(div diff --git a/static/style.css b/static/style.css index 2aab4be..15ae688 100644 --- a/static/style.css +++ b/static/style.css @@ -83,6 +83,10 @@ input#new_version { width: 6em; } +.not-shown-to-humans { + display: none; +} + .confirm-package-deletion { background-color: red; padding: 2em;