-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix special charactor handle in ai-security-guard plugin #1394
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1394 +/- ##
==========================================
+ Coverage 35.91% 43.57% +7.66%
==========================================
Files 69 76 +7
Lines 11576 12320 +744
==========================================
+ Hits 4157 5368 +1211
+ Misses 7104 6619 -485
- Partials 315 333 +18 |
@@ -106,7 +106,7 @@ func getSign(params map[string]string, secret string) string { | |||
}) | |||
canonicalStr := strings.Join(paramArray, "&") | |||
signStr := "POST&%2F&" + urlEncoding(canonicalStr) | |||
// proxywasm.LogInfo(signStr) | |||
proxywasm.LogDebugf("String to sign is:" + signStr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
都LogDebugf,为啥不用%s?不用%s还不如直接LogDebug。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emmm,没注意到,我改下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
响应文本中有特殊字符时的处理有些问题,修复该问题
fixes #1394