-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate.php
executable file
·55 lines (54 loc) · 1.41 KB
/
state.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
return [
// Resolve link in element’s content
'content' => [
'script' => "\\x\\link\\content\\script",
'style' => "\\x\\link\\content\\style"
],
// Resolve link in element’s attribute
'data' => [
'a' => [
'href' => 1,
'ping' => 1
],
'area' => [
'href' => 1,
'ping' => 1
],
'audio' => ['src' => 1],
'base' => ['href' => 1],
'button' => ['formaction' => 1],
'embed' => ['src' => 1],
'form' => ['action' => 1],
'iframe' => ['src' => 1],
'img' => [
'src' => 1,
'srcset' => "\\x\\link\\data\\img\\srcset"
],
'input' => [
'formaction' => 1,
'src' => 1 // `<input type="image">`
],
'link' => [
'href' => 1,
'imagesrcset' => "\\x\\link\\data\\img\\srcset"
],
'object' => ['data' => 1],
'param' => ['value' => 1],
'picture' => ['srcset' => "\\x\\link\\data\\img\\srcset"],
'script' => ['src' => 1],
'source' => [
'src' => 1,
'srcset' => "\\x\\link\\data\\img\\srcset"
],
'track' => ['src' => 1],
'use' => [ // `<svg>`
'href' => 1,
'xlink:href' => 1
],
'video' => [
'poster' => 1,
'src' => 1
]
]
];