Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(util/gutil): code scanning alert no. 17: Potentially unsafe quoting #3993

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix code scanning alert no. 17: Potentially unsafe quoting
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
houseme and github-advanced-security[bot] authored Dec 1, 2024
commit 296d0d947c4bd84fd5eae1328b53a5ae9bb4e6aa
1 change: 1 addition & 0 deletions util/gutil/gutil_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ func doDumpDefault(in doDumpInternalInput) {
func addSlashesForString(s string) string {
return gstr.ReplaceByMap(s, map[string]string{
`"`: `\"`,
`'`: `\'`,
"\r": `\r`,
"\t": `\t`,
"\n": `\n`,
Expand Down
Loading