mirror of
https://github.com/securego/gosec.git
synced 2025-07-15 01:04:43 +02:00
Fix typos in struct fields, comments, and docs (#1023)
This commit is contained in:
@ -100,7 +100,7 @@ func GetChar(n ast.Node) (byte, error) {
|
||||
// Unlike the other getters, it does _not_ raise an error for unknown ast.Node types. At the base, the recursion will hit a non-BinaryExpr type,
|
||||
// either BasicLit or other, so it's not an error case. It will only error if `strconv.Unquote` errors. This matters, because there's
|
||||
// currently functionality that relies on error values being returned by GetString if and when it hits a non-basiclit string node type,
|
||||
// hence for cases where recursion is needed, we use this separate function, so that we can still be backwards compatbile.
|
||||
// hence for cases where recursion is needed, we use this separate function, so that we can still be backwards compatible.
|
||||
//
|
||||
// This was added to handle a SQL injection concatenation case where the injected value is infixed between two strings, not at the start or end. See example below
|
||||
//
|
||||
|
Reference in New Issue
Block a user