Blame view

sql_sequrity.go 197 Bytes
5f1346d2d   Marko Tikvić   SQLProtect replac...
1
2
3
4
5
6
7
8
9
10
11
12
13
  package restutility
  
  import (
  	"strings"
  )
  
  func SQLProtect(in string) string {
  	patern := "\"';&*<>=\\`:"
  	for _, c := range patern {
  		in = strings.Replace(in, string(c), "", -1)
  	}
  	return in
  }