Skip to content

Commit b4f0315

Browse files
committed
Bit detailed info about vulnerability when using multibyte encoding.
1 parent e11c825 commit b4f0315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Default: false
192192

193193
When `interpolateParams` is true, calls to `sql.Db.Query()` and `sql.Db.Exec()` with params interpolates placeholders (`?`) with given params. This reduces roundtrips to database compared with `interpolateParams=false` since it uses prepare, exec and close to support parameters.
194194

195-
NOTE: It make SQL injection vulnerability when connection encoding is not utf8.
195+
NOTE: It make SQL injection vulnerability when connection encoding is multibyte encoding except utf-8 (e.g. cp932).
196196

197197
##### `loc`
198198

0 commit comments

Comments
 (0)