From 3b2c2699fe21e5449950db42742e76760fa2a78c Mon Sep 17 00:00:00 2001 From: markotikvic Date: Fri, 4 Nov 2016 21:22:16 +0100 Subject: [PATCH] minor changes, should update dependant apps --- sql_sequrity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql_sequrity.go b/sql_sequrity.go index b05a4d0..be2cb5e 100644 --- a/sql_sequrity.go +++ b/sql_sequrity.go @@ -4,7 +4,7 @@ import ( "strings" ) -func SQLProtect(in string) string { +func SQLSafeString(in string) string { patern := "\"';&*<>=\\`:" for _, c := range patern { in = strings.Replace(in, string(c), "", -1) -- 1.8.1.2