From a128370a243de777a3843fa58fe96c38b2bea077 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" <destructionator@gmail.com> Date: Fri, 2 Dec 2011 21:49:45 -0500 Subject: [PATCH] forgot csrf token on automatic form --- web.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web.d b/web.d index e34396f..e74f5ff 100644 --- a/web.d +++ b/web.d @@ -1072,6 +1072,8 @@ void run(Provider)(Cgi cgi, Provider instantiation, size_t pathInfoStartingPoint form = createAutomaticForm(new Document, fun);// params, beautify(fun.originalName)); foreach(k, v; cgi.get) form.setValue(k, v); + + instantiation.addCsrfTokens(form); form.setValue("envelopeFormat", envelopeFormat); auto n = form.getElementById("function-name");