diff gpp/templates/weblinks/link.html @ 194:6a5549c2efb5

Implement #62, add support for CSRF protection.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Apr 2010 20:00:56 +0000
parents 952e05cb3d80
children 0e7c7231dea9
line wrap: on
line diff
--- a/gpp/templates/weblinks/link.html	Sat Apr 03 02:15:04 2010 +0000
+++ b/gpp/templates/weblinks/link.html	Sat Apr 03 20:00:56 2010 +0000
@@ -3,7 +3,7 @@
 </dt>
 <dd>
 <p>{{ link.description }}</p>
-<form action="{% url weblinks-visit link.id %}" method="post">
+<form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %}
 <table class="link-stats">
    <tr>
       <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td>