Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 5364015

Browse files
committed
common: tab characters are safe in SQL queries too
1 parent 6da6e39 commit 5364015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/userinput.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func CheckUnicode(rawInput string) (str string, err error) {
3333
decodedStr := string(decoded)
3434
for _, j := range decodedStr {
3535
if unicode.IsControl(j) || unicode.Is(unicode.C, j) {
36-
if j != 10 { // 10 == new line, which is safe to allow. Everything else should (probably) raise an error
36+
if j != 9 && j != 10 { // 9 == tab, 10 == new line, which are safe to allow. Everything else should (probably) raise an error
3737
invalidChar = true
3838
}
3939
}

0 commit comments

Comments
 (0)