Skip to content

Commit c543b48

Browse files
committed
v0.2.0
1 parent 50452c7 commit c543b48

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

pkg/csprecon/csp.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,6 @@ func CheckCSP(url, ua string, rCSP *regexp.Regexp, client *http.Client) ([]strin
6060
func ParseCSP(input string, r *regexp.Regexp) []string {
6161
result := []string{}
6262

63-
/*
64-
65-
splitted := strings.Split(input, ";")
66-
67-
for _, elem := range splitted {
68-
spaceSplit := strings.Split(elem, " ")
69-
for _, spaceElem := range spaceSplit {
70-
if r.Match([]byte(spaceElem)) {
71-
if strings.Contains(spaceElem, "://") {
72-
spaceElem, err = golazy.GetHost(spaceElem)
73-
if err != nil {
74-
continue
75-
}
76-
}
77-
result = append(result, spaceElem)
78-
}
79-
}
80-
}
81-
*/
82-
8363
matches := r.FindAllStringSubmatch(input, -1)
8464
for _, match := range matches {
8565
result = append(result, match...)

0 commit comments

Comments
 (0)