Skip to content

Commit 91a8817

Browse files
authoredSep 28, 2021
Merge pull request #287 from hahwul/dev
v2.5.1
2 parents b7e0f22 + 257341f commit 91a8817

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hahwul/dalfox/v2
22

3-
go 1.14
3+
go 1.16
44

55
require (
66
github.com/PuerkitoBio/goquery v1.7.1

‎pkg/printing/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package printing
22

33
// VERSION is version of dalfox
4-
const VERSION = "v2.5.0"
4+
const VERSION = "v2.5.1"

‎pkg/scanning/waf.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ func checkWAF(header http.Header, body string) (bool, string) {
347347
}
348348
if p.Header != "" {
349349
for k, v := range header {
350-
km, _ := regexp.MatchString(k, body)
350+
km, _ := regexp.MatchString(p.Header, k)
351351
vm := false
352352
for _, vh := range v {
353-
headerValueMatch, _ := regexp.MatchString(vh, body)
353+
headerValueMatch, _ := regexp.MatchString(p.Header, vh)
354354
if headerValueMatch {
355355
vm = true
356356
}

0 commit comments

Comments
 (0)
Please sign in to comment.