line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# This file is generated by author/assets.pl. Do not edit manually. |
2
|
|
|
|
|
|
|
use strict; |
3
|
1
|
|
|
1
|
|
345
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
93
|
|
5
|
|
|
|
|
|
|
<<',,,'; |
6
|
|
|
|
|
|
|
<script src="<: uri_for('/static/js/xsrf-token.js') :>"></script> |
7
|
1
|
|
|
1
|
0
|
4
|
,,, |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
return { |
11
|
|
|
|
|
|
|
'js/xsrf-token.js' => '(function (document, $) { |
12
|
|
|
|
|
|
|
$(function () { |
13
|
|
|
|
|
|
|
"use strict"; |
14
|
0
|
|
|
0
|
0
|
|
|
15
|
|
|
|
|
|
|
var xsrf_token = getXSRFToken(); |
16
|
|
|
|
|
|
|
$("form").each(function () { |
17
|
|
|
|
|
|
|
var form = $(this); |
18
|
|
|
|
|
|
|
var method = form.attr(\'method\'); |
19
|
|
|
|
|
|
|
if (method === \'get\' || method === \'GET\') { |
20
|
|
|
|
|
|
|
return; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
var input = $(document.createElement(\'input\')); |
24
|
|
|
|
|
|
|
input.attr(\'type\', \'hidden\'); |
25
|
|
|
|
|
|
|
input.attr(\'name\', \'XSRF-TOKEN\'); |
26
|
|
|
|
|
|
|
input.attr(\'value\', xsrf_token); |
27
|
|
|
|
|
|
|
form.prepend(input); |
28
|
|
|
|
|
|
|
}); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
function getXSRFToken() { |
31
|
|
|
|
|
|
|
var cookies = document.cookie.split(/\\s*;\\s*/); |
32
|
|
|
|
|
|
|
for (var i=0,l=cookies.length; i<l; i++) { |
33
|
|
|
|
|
|
|
var matched = cookies[i].match(/^XSRF-TOKEN=(.*)$/); |
34
|
|
|
|
|
|
|
if (matched) { |
35
|
|
|
|
|
|
|
return matched[1]; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
return undefined; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
}); |
41
|
|
|
|
|
|
|
})(document, jQuery); |
42
|
|
|
|
|
|
|
' |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |