Blame view

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