From patchwork Thu Jun 24 16:38:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John 'Warthog9' Hawley X-Patchwork-Id: 56873 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id B1CDFB70C3 for ; Fri, 25 Jun 2010 10:13:39 +1000 (EST) Received: from shards.monkeyblade.net (shards.monkeyblade.net [198.137.202.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7BDFFB6F15 for ; Fri, 25 Jun 2010 02:57:12 +1000 (EST) Received: from localhost.localdomain (c-71-202-185-40.hsd1.ca.comcast.net [71.202.185.40]) (authenticated bits=0) by shards.monkeyblade.net (8.14.4/8.14.3) with ESMTP id o5OGc7P0001761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jun 2010 09:38:10 -0700 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.95.3 at shards.monkeyblade.net From: "John 'Warthog9' Hawley" To: patchwork@lists.ozlabs.org Subject: [PATCH 1/1] templates: Add CSRF (cross-site request forgery) values to form posts Date: Thu, 24 Jun 2010 09:38:06 -0700 Message-Id: <1277397486-17239-2-git-send-email-warthog9@kernel.org> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1277397486-17239-1-git-send-email-warthog9@kernel.org> References: <1277397486-17239-1-git-send-email-warthog9@kernel.org> MIME-Version: 1.0 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (shards.monkeyblade.net [198.137.202.13]); Thu, 24 Jun 2010 09:38:10 -0700 (PDT) X-Mailman-Approved-At: Fri, 25 Jun 2010 10:13:37 +1000 Cc: John 'Warthog9' Hawley X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org This is a fairly simple patch, basically it does what the error message told me to do: "add In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL." Signed-off-by: John 'Warthog9' Hawley --- templates/patchwork/bundle.html | 1 + templates/patchwork/bundles.html | 1 + templates/patchwork/patch-form.html | 4 ++++ templates/patchwork/patch-list.html | 2 ++ templates/patchwork/patch.html | 5 +++++ templates/patchwork/patchlist.html | 1 + templates/patchwork/profile.html | 3 +++ templates/patchwork/user-link.html | 1 + templates/registration/login.html | 1 + templates/registration/registration_form.html | 1 + 10 files changed, 20 insertions(+), 0 deletions(-) diff --git a/templates/patchwork/bundle.html b/templates/patchwork/bundle.html index 616a62e..a2933d5 100644 --- a/templates/patchwork/bundle.html +++ b/templates/patchwork/bundle.html @@ -26,6 +26,7 @@ project.