Skip to content

Commit

Permalink
Add {{ csrf() }} to solution form. [bug 655006]
Browse files Browse the repository at this point in the history
  • Loading branch information
James Socol committed May 5, 2011
1 parent c20c6ce commit 2f84e33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/questions/templates/questions/includes/answer.html
Expand Up @@ -58,6 +58,7 @@
{% if not question.solution and user == question.creator %}
<h4>{{ _('Did this solve your problem?') }}</h4>
<form class="helpful" action="{{ url('questions.solution', question_id=question.id, answer_id=answer.id) }}" method="post">
{{ csrf() }}
<input type="submit" class="btn" name="solution" value="{{ _('Solved It') }}" />
</form>
{% elif not answer.has_voted(request) and user != question.creator and user != answer.creator %}
Expand Down

0 comments on commit 2f84e33

Please sign in to comment.