Mercurial > p > roundup > code
diff website/issues/html/msg.item.html @ 5291:f63a2b15e628
Adding @csrf tokens to all forms using post method.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 24 Sep 2017 21:17:51 -0400 |
| parents | c2d0d3e9099d |
| children | 4ac0bbb3e440 |
line wrap: on
line diff
--- a/website/issues/html/msg.item.html Sun Sep 24 21:14:12 2017 -0400 +++ b/website/issues/html/msg.item.html Sun Sep 24 21:17:51 2017 -0400 @@ -76,6 +76,8 @@ <input type="hidden" name="@action" value="spambayes_classify"> <input type="submit" name="trainspam" value="Mark as SPAM" i18n:attributes="value"> <input type="submit" name="trainham" value="Mark as HAM (not SPAM)" i18n:attributes="value"> + <input name="@csrf" type="hidden" + tal:attributes="value python:utils.anti_csrf_nonce()"> </form> </th>
