diff --git a/CHANGELOG b/CHANGELOG index 9ccaee69..c48b6e94 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -53,3 +53,6 @@ set incorrectly. Thanks to Lukeman for the fix. 2010-07-16 r157 Fix issues #141, #142 - IMAP infinite loops and ticket pagination issues. Thanks to Walter Doekes for the patches. + +2010-07-16 r158 New CSRF functionality for Django 1.1+. Thanks to +'litchfield4' for the patch. diff --git a/templates/helpdesk/base.html b/templates/helpdesk/base.html index 5516236a..162880bf 100644 --- a/templates/helpdesk/base.html +++ b/templates/helpdesk/base.html @@ -21,7 +21,7 @@
  • {% trans "New Ticket" %}
  • {% trans "Stats" %}
  • {% trans "Logout" %}
  • - {% if not query %}
  • {% endif %} + {% if not query %}
  • {% csrf_token %}
  • {% endif %}
    diff --git a/templates/helpdesk/confirm_delete_saved_query.html b/templates/helpdesk/confirm_delete_saved_query.html index a490b904..f2da0e9a 100644 --- a/templates/helpdesk/confirm_delete_saved_query.html +++ b/templates/helpdesk/confirm_delete_saved_query.html @@ -14,5 +14,5 @@ {% blocktrans %}

    No, Don't Delete It

    -
    +
    {% csrf_token %}
    {% endblocktrans %}{% endblock %} diff --git a/templates/helpdesk/create_ticket.html b/templates/helpdesk/create_ticket.html index 669d7ab9..15793939 100644 --- a/templates/helpdesk/create_ticket.html +++ b/templates/helpdesk/create_ticket.html @@ -27,5 +27,5 @@
    - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/delete_ticket.html b/templates/helpdesk/delete_ticket.html index b62a7208..a854d59f 100644 --- a/templates/helpdesk/delete_ticket.html +++ b/templates/helpdesk/delete_ticket.html @@ -10,5 +10,5 @@ {% blocktrans %}

    No, Don't Delete It

    -
    +
    {% csrf_token %}
    {% endblocktrans %}{% endblock %} diff --git a/templates/helpdesk/edit_ticket.html b/templates/helpdesk/edit_ticket.html index c57abce7..22b0d647 100644 --- a/templates/helpdesk/edit_ticket.html +++ b/templates/helpdesk/edit_ticket.html @@ -29,5 +29,5 @@ - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/email_ignore_add.html b/templates/helpdesk/email_ignore_add.html index e79888de..f449a107 100644 --- a/templates/helpdesk/email_ignore_add.html +++ b/templates/helpdesk/email_ignore_add.html @@ -22,6 +22,6 @@ - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/email_ignore_del.html b/templates/helpdesk/email_ignore_del.html index 93268933..61484dc9 100644 --- a/templates/helpdesk/email_ignore_del.html +++ b/templates/helpdesk/email_ignore_del.html @@ -10,5 +10,5 @@ {% blocktrans %}

    Keep Ignoring It

    -
    +
    {% csrf_token %}
    {% endblocktrans %}{% endblock %} diff --git a/templates/helpdesk/public_homepage.html b/templates/helpdesk/public_homepage.html index 927a58dc..e4775e79 100644 --- a/templates/helpdesk/public_homepage.html +++ b/templates/helpdesk/public_homepage.html @@ -15,7 +15,7 @@ - +{% csrf_token %}

    {% trans "Submit a Ticket" %}

    @@ -41,5 +41,5 @@ - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/public_view_form.html b/templates/helpdesk/public_view_form.html index f24c5001..26ee4677 100644 --- a/templates/helpdesk/public_view_form.html +++ b/templates/helpdesk/public_view_form.html @@ -18,7 +18,7 @@ - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/ticket.html b/templates/helpdesk/ticket.html index 0d7d26e4..07b35450 100644 --- a/templates/helpdesk/ticket.html +++ b/templates/helpdesk/ticket.html @@ -194,7 +194,7 @@ - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/ticket_cc_add.html b/templates/helpdesk/ticket_cc_add.html index 80b9736b..353e6f16 100644 --- a/templates/helpdesk/ticket_cc_add.html +++ b/templates/helpdesk/ticket_cc_add.html @@ -20,6 +20,6 @@ - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/ticket_cc_del.html b/templates/helpdesk/ticket_cc_del.html index 4aa0bb81..56965822 100644 --- a/templates/helpdesk/ticket_cc_del.html +++ b/templates/helpdesk/ticket_cc_del.html @@ -10,5 +10,5 @@ {% blocktrans %}

    Don't Delete

    -
    +
    {% csrf_token %}
    {% endblocktrans %}{% endblock %} diff --git a/templates/helpdesk/ticket_list.html b/templates/helpdesk/ticket_list.html index 576708e8..05c7f88a 100644 --- a/templates/helpdesk/ticket_list.html +++ b/templates/helpdesk/ticket_list.html @@ -59,7 +59,7 @@ $(document).ready(function() { {% endif %} - + {% csrf_token %}
    @@ -130,7 +130,7 @@ $(document).ready(function() {

    -
    + {% csrf_token %} {% if not from_saved_query %} @@ -153,7 +153,7 @@ $(document).ready(function() { - + {% csrf_token %} {% endif %}
    @@ -165,7 +165,7 @@ $(document).ready(function() { {% endfor %}

    - + {% csrf_token %}
    @@ -216,5 +216,5 @@ $(document).ready(function() {

    All None Inverse

    - +{% csrf_token %} {% endblock %} diff --git a/templates/helpdesk/user_settings.html b/templates/helpdesk/user_settings.html index f737bd73..45cd659a 100644 --- a/templates/helpdesk/user_settings.html +++ b/templates/helpdesk/user_settings.html @@ -17,6 +17,6 @@ {% endfor %} - +{% csrf_token %} {% endblock %} diff --git a/templates/registration/login.html b/templates/registration/login.html index 8fae35e3..467181e9 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -16,5 +16,5 @@ - +{% csrf_token %} {% endblock %}