Mercurial > public > sg101
diff gpp/templates/weblinks/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 | 952e05cb3d80 |
children | 7e8d2dda99e3 |
line wrap: on
line diff
--- a/gpp/templates/weblinks/navigation.html Sat Apr 03 02:15:04 2010 +0000 +++ b/gpp/templates/weblinks/navigation.html Sat Apr 03 20:00:56 2010 +0000 @@ -2,7 +2,7 @@ <img src="{{ MEDIA_URL }}icons/weblinks-logo.jpg" alt="Links Logo" title="Links" /> </div> <div class="weblinks-search"> -<form action="{% url weblinks-search page=1 %}" method="post"> +<form action="{% url weblinks-search page=1 %}" method="post">{% csrf_token %} <p>{{ search_form.text }} <input type="submit" value="Search" /></p> </form> </div> @@ -16,7 +16,7 @@ {% endif %} </ul> <center> - <form action="{% url weblinks.views.random_link %}" method="post"> + <form action="{% url weblinks.views.random_link %}" method="post">{% csrf_token %} <input type="submit" value="Visit a Random Link" /> </form> </center>