diff gpp/templates/downloads/navigation.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 db40c2754580
children 2022c0409296
line wrap: on
line diff
--- a/gpp/templates/downloads/navigation.html	Sat Apr 03 02:15:04 2010 +0000
+++ b/gpp/templates/downloads/navigation.html	Sat Apr 03 20:00:56 2010 +0000
@@ -1,7 +1,7 @@
 <div class="app-logo">
 <img src="{{ MEDIA_URL }}icons/downloads-logo.jpg" alt="Downloads Logo" title="Downloads" />
 </div>
-<form id="downloads-search" action="{% url downloads-search page=1 %}" method="post">
+<form id="downloads-search" action="{% url downloads-search page=1 %}" method="post">{% csrf_token %}
     <p>{{ search_form.text }} <input type="submit" value="Search" /></p>
 </form>
 <ul class="app-menu">