Skip to content
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

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

rinfx
Copy link
Collaborator

@rinfx rinfx commented Oct 16, 2024

响应文本中有特殊字符时的处理有些问题,修复该问题

fixes #1394

@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.57%. Comparing base (ef31e09) to head (e624c01).
Report is 152 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            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     

see 69 files with indirect coverage changes

@johnlanni johnlanni changed the title special charactor handle bug fix fix special charactor handle in ai-security-guard plugin Oct 16, 2024
@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

都LogDebugf,为啥不用%s?不用%s还不如直接LogDebug。。。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emmm,没注意到,我改下

Copy link
Collaborator

@CH3CHO CH3CHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CH3CHO CH3CHO merged commit 32e5a59 into alibaba:main Oct 18, 2024
12 checks passed
@rinfx rinfx mentioned this pull request Oct 18, 2024
1 task
@rinfx rinfx deleted the ai-sec-bugfix branch November 5, 2024 01:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants