Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
222e1334
Kaydet (Commit)
222e1334
authored
Haz 28, 2016
tarafından
Camilo Nova
Kaydeden (comit)
Tim Graham
Haz 28, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Used strict comparison in docs/ref/csrf.txt's JavaScript.
üst
49b4596c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrf.txt
docs/ref/csrf.txt
+2
-2
No files found.
docs/ref/csrf.txt
Dosyayı görüntüle @
222e1334
...
@@ -83,12 +83,12 @@ Acquiring the token is straightforward:
...
@@ -83,12 +83,12 @@ Acquiring the token is straightforward:
// using jQuery
// using jQuery
function getCookie(name) {
function getCookie(name) {
var cookieValue = null;
var cookieValue = null;
if (document.cookie && document.cookie != '') {
if (document.cookie && document.cookie !=
=
'') {
var cookies = document.cookie.split(';');
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
if (cookie.substring(0, name.length + 1) ==
=
(name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
break;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment