Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 02d5115

Browse files
committed
[waf]同时支持URL参数中的+和%20
1 parent 4971029 commit 02d5115

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

teawaf/rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ func (this *Rule) unescape(v string) string {
523523
v = strings.Replace(v, `!`, `(!|%21)`, -1)
524524
v = strings.Replace(v, `/`, `(/|%2F)`, -1)
525525
v = strings.Replace(v, `;`, `(;|%3B)`, -1)
526+
v = strings.Replace(v, `\+`, `(\+|%20)`, -1)
526527
return v
527528
}
528529

0 commit comments

Comments
 (0)