Ticket #15251: 15251.diff

File 15251.diff, 664 bytes (added by Tim Graham, 14 years ago)
  • docs/releases/1.2.5.txt

    diff --git a/docs/releases/1.2.5.txt b/docs/releases/1.2.5.txt
    index 7482e09..edc6491 100644
    a b send back the CSRF token in the custom X-CSRFTOKEN header::  
    7171                if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
    7272                    // Only send the token to relative URLs i.e. locally.
    7373                    xhr.setRequestHeader("X-CSRFToken",
    74                                          $("#csrfmiddlewaretoken").val());
     74                                         $("input[name=csrfmiddlewaretoken]").val());
    7575                }
    7676            }
    7777        });
Back to Top