Code

Ticket #15251: 15251.diff

File 15251.diff, 664 bytes (added by timo, 3 years ago)
Line 
1diff --git a/docs/releases/1.2.5.txt b/docs/releases/1.2.5.txt
2index 7482e09..edc6491 100644
3--- a/docs/releases/1.2.5.txt
4+++ b/docs/releases/1.2.5.txt
5@@ -71,7 +71,7 @@ send back the CSRF token in the custom X-CSRFTOKEN header::
6                 if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
7                     // Only send the token to relative URLs i.e. locally.
8                     xhr.setRequestHeader("X-CSRFToken",
9-                                         $("#csrfmiddlewaretoken").val());
10+                                         $("input[name=csrfmiddlewaretoken]").val());
11                 }
12             }
13         });