sql_sequrity.go 205 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 10 11 12 13 14 package webutility import ( "strings" ) var patern string = "\"';&*<>=\\`:" func SQLSafeString(s string) string { for _, c := range patern { s = strings.Replace(s, string(c), "", -1) } return s }