mirror of
https://github.com/gogf/gf.git
synced 2025-04-05 03:05:05 +08:00
fix(util/gutil): code scanning alert no. 17: Potentially unsafe quoting (#3993)
This commit is contained in:
parent
5aa7504bb2
commit
42eae41599
@ -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`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user